03.12.2012, 11:46
Lines:
Errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"
If i write
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
i get more errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : warning 215: expression has no effect
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 244) : error 017: undefined symbol "currentveh"
I want to make that if player in DM zone, he can't spawn vehicles.
Код:
public OnVehicleSpawn(vehicleid) { if(DM[playerid] == true) DestroyVehicle(currentveh); return 1; }
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"
If i write
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
i get more errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : warning 215: expression has no effect
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 244) : error 017: undefined symbol "currentveh"
I want to make that if player in DM zone, he can't spawn vehicles.