SA-MP Forums Archive
Variable I think - 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: Variable I think (/showthread.php?tid=603863)



Variable I think - anonimus2222222 - 28.03.2016

I tried that when you type the command a player can not just another player key and when the object got into position. To order it goes whether or not the object to its original position.


PHP код:
if(strcmp(cmd"/balon"true) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid53808.3311,-537.4142,3.9412))
        {
            if(
BalonTime[playerid] = 1)
            {
                
MoveObject(Balon3740.3618, -563.420074.295050.00000.0000, -75.7200);
                
SetTimerEx("Balon1"8000false"i"playerid);
                
BalonTime[playerid] = 0;
                return 
1;
            }
            else 
SendClientMessage(playerid, -1"Ai rabdare sa se intoarca balonul pe insula.");
        }
    } 



Re: Variable I think - anonimus2222222 - 28.03.2016

UP !


Re: Variable I think - anonimus2222222 - 03.04.2016

UP !


Re: Variable I think - introzen - 03.04.2016

We don't understand your intentions.


Re: Variable I think - anonimus2222222 - 15.04.2016

When a person types in command for a time can not key another person the same command.


Re: Variable I think - Godey - 15.04.2016

You can't use one '=' in if() {} loops
Use:
Код:
if(BalonTime[playerid] == 1)
And also