if (IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "** %s je izbacio neobican predmet kroz prozor **", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
format(string, sizeof(string), "** %s je bacio neobican predmet na pod **", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
tipican primjer nelogicnosti...
pojasnjenje:
ispod else {} bloka jednom staviti ProxDetector funkciju i isto ce ispasti a imat ce vise logike nego 2 puta isto sranje