SA-MP Forums Archive
Lock vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lock vehicle (/showthread.php?tid=581409)



Lock vehicle - STONEGOLD - 12.07.2015

PHP код:
(6007) : error 012invalid function callnot a valid address
(6007) : warning 215expression has no effect
(6007) : error 001expected token";"but found ")"
(6007) : error 029invalid expressionassumed zero
(6007) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
       
LastVehicle[playerid] = GetPlayerLastVehicleID(playerid);
    } 
line:

PHP код:
LastVehicle[playerid] = GetPlayerLastVehicleID(playerid); 
also i added

new LastVehicle[MAX_PLAYERS];


Re: Lock vehicle - WilliamOordt - 13.07.2015

GetPlayerLastVehicleID() isnt a function.

wiki.sa-mp.com/wiki/GetPlayerLastVehicleID


Re: Lock vehicle - Sime30 - 13.07.2015

Quote:
Originally Posted by WilliamOordt
Посмотреть сообщение
GetPlayerLastVehicleID() isnt a function.

wiki.sa-mp.com/wiki/GetPlayerLastVehicleID
Never used that, but looks like there is such a thing

http://lsfr.******code.com/svn/trunk/include/uf2.inc