SA-MP Forums Archive
Command problem, please 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: Command problem, please help! (/showthread.php?tid=561771)



Command problem, please help! - eLeCTroNNN - 04.02.2015

I want do, at /find command, checkpoint follow target.
I try this. I do a timer.
new connect_timer[MAX_PLAYERS];
At command.
connect_timer[playerid] = SetTimerEx("FINDING", 5000, true, "i",giveplayerid, playerid);
At finish is KillTimer and DisablePlayerCheckpoint.

Код:
forward FINDING(giveplayerid, playerid);
public (giveplayerid, playerid)
{
                    new Float:X, Float:Y, Float:Z;
                    GetPlayerPos(giveplayerid, X,Y,Z);
	                SetPlayerCheckpoint(playerid, X,Y,Z, 6);
}



Re: Command problem, please help! - Schneider - 04.02.2015

pawn Код:
connect_timer[playerid] = SetTimerEx("FINDING", 5000, true, "uu",giveplayerid, playerid);
pawn Код:
public FINDING(giveplayerid, playerid)



Re: Command problem, please help! - eLeCTroNNN - 05.02.2015

Yes, in gamemode i do this at public.
Why "uu"?