SA:MP Gamemode problems
#2

Try this:

Код:
	new String[128];
	String = strtok(params, idx);
	if (!strlen(String)) return SendClientMessage(playerid, COLOR_GRAD2, "[USAGE]: /gotopos x y z");
	new Float:X, Float:Y, Float:Z;
	X = floatstr(String);
	Y = floatstr(strtok(params,idx));
	Z = floatstr(strtok(params,idx));
        SetPlayerPos(playerid, x, y, z);
The second error is because the variable is not defined. Do it at the beginning of the script. It seems to be a boolean.
Reply


Messages In This Thread
SA:MP Gamemode problems - by Curmei - 29.04.2015, 13:21
Respuesta: SA:MP Gamemode problems - by alexus - 29.04.2015, 14:55
Re: SA:MP Gamemode problems - by Curmei - 29.04.2015, 18:17
Re: SA:MP Gamemode problems - by Curmei - 29.04.2015, 18:35
Re: SA:MP Gamemode problems - by Curmei - 29.04.2015, 19:05
Respuesta: SA:MP Gamemode problems - by alexus - 29.04.2015, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)