16.11.2014, 16:53
Here's the command:
What is the problem? The screen crashes and says "Stay within the world boundaries".
I don't know what's the problem... When I change the format to "u" it works, but, I want the ability to move like this: 0.1, 0.2, 0.3, etc...
Can You help?
pawn Код:
CMD:West(playerid, params[])
{
if(sscanf(params, "f", West)) return SendClientMessage(playerid, 0xF81414FF, "USAGE: /west [Amount].");
format(String, sizeof(String), "You went west for: %.1f).", West);
SendClientMessage(playerid, 0x33AA33FF, String);
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X-West, Y, Z);
return 1;
}
I don't know what's the problem... When I change the format to "u" it works, but, I want the ability to move like this: 0.1, 0.2, 0.3, etc...
Can You help?