SA-MP Forums Archive
Need help...again. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help...again. (/showthread.php?tid=228735)



Need help...again. - Randomai - 20.02.2011

Hello, its me again

now my problem is:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
	if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 596)
	{
		if(gTeam[playerid] != ZombieTeam)
		{
			RemovePlayerFromVehicle(playerid);
		    SendClientMessage(playerid, COLOR_RED, "Brains....No Brains heeere....");
		}
		else if(gTeam[playerid] == HumanTeam) SendClientMessage(playerid, COLOR_GREEN, "This is one of the last cars, which still work.You can avoid zombies with this vehicle.");
		}
	}
errors:

Код:
C:\Users\Random\Desktop\zombiepanic!.pwn(554) : error 076: syntax error in the expression, or invalid function call
C:\Users\Random\Desktop\zombiepanic!.pwn(559) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Need help...again. - Randomai - 20.02.2011

sorry, my bad...problem solved.