Goto command problem
#1

I followed a tutorial by the user Lorizz, and his script doesn't work

Everytime I use it, it says "USAGE: /goto [ID]".

Can someone help me? Code at: http://pastebin.com/BwKN8LCR


Thanks!
Reply
#2

Код:
CMD:goto(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COLOR_GREY,"You are not authorized to use this command");
	new targetid;
	if(sscanf(params,"d",targetid)) return SyntaxMessage(playerid, "/goto [playerid]");
	if(!IsPlayerConnected(targetid)) SCM(playerid, 0xF97804FF, "Player is not connected!");
	new Float:x,Float:y,Float:z;
	GetPlayerPos(targetid, x, y, z);
	SetPlayerPos(playerid, x+1, y+1, z);
	return 1;
}
Reply
#3

/goto playerid [/goto 0]

Try to update sscanf.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)