01.03.2013, 09:31
i did this but it didnt work i added these lines on OnPlayerModelSelection (im using mSelection include) :
and it gave me these errors:
Код:
if(listid == vehlist) { if(response) { if( pVehicleSpawned[playerid] != -1 ) { for( new i; i < MAX_PLAYERS; i++ ) { if( IsPlayerInVehicle( i, pVehicleSpawned[playerid] ) DestroyVehicle( pVehicleSpawned[playerid] ); } } pVehicleSpawned[playerid] = CreateVehicle(...); new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1); } else { return 0; }
Код:
E:\pawn project\gamemodes\zzz.pwn(565) : error 017: undefined symbol "pVehicleSpawned" E:\pawn project\gamemodes\zzz.pwn(565) : warning 215: expression has no effect E:\pawn project\gamemodes\zzz.pwn(565) : error 001: expected token: ";", but found "]" E:\pawn project\gamemodes\zzz.pwn(565) : error 029: invalid expression, assumed zero E:\pawn project\gamemodes\zzz.pwn(565) : fatal error 107: too many error messages on one line