SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=442060)



Help - myria - 05.06.2013

How do I solve this problem:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    #if USE_ANTI_VEHICLE == true
    if(IsPlayerInAnyVehicle(playerid) || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    pVehicles[playerid]++;
    if(pVehicles[playerid] >= MAX_ENTER_VEHICLE)
    format(string, sizeof(string), "* %s has been kicked * Reason : Vehicle Hack Detected !.");
    SendClientMessageToAll(RED, string);
    Kick(playerid);
    #endif
	new string[256];
Errors:
Код:
error 017: undefined symbol "pVehicles"