Inkább használd ezt.
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define COLOR_RED 0xe74c3cAA
#define COLOR_GREEN 0x2ecc71AA
CMD:setpos(playerid, params[]) {
new Float:X, Float:Y, Float:Z, string[128];
if(sscanf(params, \"fff\", X, Y, Z)) return SendClientMessage(playerid, COLOR_RED, \"Használat: /setpos [X] [Y] [Z]\");
SetPlayerPos(playerid, X, Y, Z);
format(string, sizeof(string), \"Sikeresen elteleportáltál a(z) %f, %f, %f koordinátára!\", X, Y, Z);
return SendClientMessage(playerid, COLOR_GREEN, string);
}
Sscanf plugin - http://forum.sa-mp.com/showthread.php?t=570927
Zcmd include - https://www.dropbox.com/s/arzsqcdshgeo50j/zcmd.inc?dl=0