Car respawn error
#4

Quote:
Originally Posted by JFF
Посмотреть сообщение
Didnt test but it should work

pawn Код:
forward respawn();

new LastCar[MAX_PLAYERS];

public OnPlayerExitVehicle(playerid, vehicleid)
{
    new id = GetVehicleID(vehicleid);
    LastCar[playerid] = vehicleid;
    if(GetPlayerVehicleAccess(playerid, id) < 1)
    {
        SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast! See ei ole sinu masin, seega see respawnib 10 sekundi pдrast!");
        SetTimer("respawn", 10000, false);
    }
    else return SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast!");
    return 1;
}

public respawn()
{  
    DestroyVehicle(LastCar[playerid]);
}
When i compile it... the same error:
pawn Код:
C:\Users\Monster\Desktop\samp03z_svr_R1_win32\filterscripts\avs.pwn(1827) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
And error line is:
pawn Код:
DestroyVehicle(LastCar[playerid]);
Reply


Messages In This Thread
Car respawn error - by Sachza - 19.05.2014, 10:14
Re: Car respawn error - by JFF - 19.05.2014, 10:19
Re: Car respawn error - by DaniceMcHarley - 19.05.2014, 10:25
Re: Car respawn error - by Sachza - 19.05.2014, 10:27
Re: Car respawn error - by JFF - 19.05.2014, 10:29
Re: Car respawn error - by XK - 19.05.2014, 12:05
Re: Car respawn error - by JFF - 19.05.2014, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)