Command problem, please help!
#1

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);
}
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)