02.12.2014, 21:04
Hello i've this command to move object in game
its work fine if i type the position like this 1363.6510 -1279.8331 13.5469
but if i type it like this 1363.6510,-1279.8331,13.5469 its not work and that is my problem
sorry for my english
PHP код:
CMD:mo(playerid,params[])
{
new Float:x, Float:y, Float:z, Float:speed;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"Command not found! Type /cmds");
if(sscanf(params, "ffff",x,y,z,speed)) return SendClientMessage(playerid,red,"Move object: /x /bla /bla /bla");
MoveObject(ObjectID,x,y,z,speed,0,0,0);
return 1;
}
but if i type it like this 1363.6510,-1279.8331,13.5469 its not work and that is my problem
sorry for my english