Lock vehicle
#1

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];
Reply
#2

GetPlayerLastVehicleID() isnt a function.

wiki.sa-mp.com/wiki/GetPlayerLastVehicleID
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)