SA-MP Forums Archive
What am I doing wrong ?? - 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: What am I doing wrong ?? (/showthread.php?tid=251356)



What am I doing wrong ?? - [JnA]DukeNukem - 26.04.2011

Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(GetPlayerInterior(playerid)== 0) return ResetPlayerWeapons(playerid);
	else if(GetPlayerInterior(playerid)== 6) return SendClientMessage(playerid, 0x0259EAAA," id 6");
    return 1;
}



Re: What am I doing wrong ?? - xDeadlyBoy - 26.04.2011

wrong callback, it should be OnPlayerInteriorChange.