GTAONLINE.PL
Użytkownicy
Grupy
FAQ
Regulamin
Piwa
Reklama/Vip
Raporty
Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: kolo
1.
[INNE] Blokada na kolo
Witajcie
Powiedzcie mi kochani co jest z?ego w tym kodzie ? :
Kod:
CMD:blokujkolo(playerid,params[])
{
if(!ToPD(playerid))
new Float:p[3];
for(new x; x < MAX_VEHICLES; x++)
GetVehiclePos(x, p[0], p[1], p[2]);
if(IsPlayerInRangeOfPoint(playerid, 5, p[0], p[1], p[2]))
zamkniety[x] = 1;
}
Linijka:
Kod:
new Float:p[3];
Efekt :
Kod:
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : error 003: declaration of a local variable must appear in a compound block
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : warning 221: label name "Float" shadows tag name
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : error 017: undefined symbol "p"
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : warning 215: expression has no effect
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : error 001: expected token: ";", but found "]"
C:Users****Desktopserwer truckgamemodes****.pwn(3439) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Rozdaje piwka