Wysłany: 2013-05-24, 16:27
panmajster
Wiek: 42 Na forum: 4786 dni Posty: 154
Nick w MP: NieWazne
Piwa : 124
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:
Efekt :
Kod:
C:\Users\****\Desktop\serwer truck\gamemodes\****.pwn(3439) : error 003: declaration of a local variable must appear in a compound block
C:\Users\****\Desktop\serwer truck\gamemodes\****.pwn(3439) : warning 221: label name "Float" shadows tag name
C:\Users\****\Desktop\serwer truck\gamemodes\****.pwn(3439) : error 017: undefined symbol "p"
C:\Users\****\Desktop\serwer truck\gamemodes\****.pwn(3439) : warning 215: expression has no effect
C:\Users\****\Desktop\serwer truck\gamemodes\****.pwn(3439) : error 001: expected token: ";", but found "]"
C:\Users\****\Desktop\serwer truck\gamemodes\****.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
Wysłany: 2013-05-24, 17:04
xqz
otaku desu!
Wiek: 32 Na forum: 6406 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Uzywaj klamer bo to zle wyglada
Kod:
CMD:blokujkolo(playerid,params[])
{
if(!ToPD(playerid))
{
new Float:p2[3];
for(new x; x < MAX_VEHICLES; x++)
{
GetVehiclePos(x, p[0], p[1], p[2]);
if(IsPlayerInRangeOfPoint(playerid, 5, p2[0], p2[1], p2[2]))
zamkniety[x] = 1;
}
}
}
Bl?dem jest brak klamry po ToPD
Tagi: blokada :: kolo
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: