Stop code from loading if... - 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: Stop code from loading if... (
/showthread.php?tid=146259)
Stop code from loading if... -
Assyria - 06.05.2010
Hello.
Код:
public OnPlayerSpawn(playerid)
{
if(test1[playerid]==0)
{
new Float:xx, Float:yy, Float:zz;
SetPlayerCameraPos(playerid, xx, yy, zz);
}
if (lllll[playerid]==1)
{
SetPlayer...blablabla
So, how to do this:
If test == 0 -> it does those things, BUT it
stops the code from going any further in OnPlayerSpawn, until next time. But also, if the test == 1, it just "jumps" over it without stopping the code and doing the stuff in there. Maybe it has something to do with returning false...?
Regards,
Assyria
Re: Stop code from loading if... -
Correlli - 06.05.2010
https://sampwiki.blast.hk/wiki/Keywords:Statements#return