ZCMD - Help
#1

Here's the command:

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;
}
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?
Reply


Messages In This Thread
ZCMD - Help - by NickHaudMTA - 16.11.2014, 16:53
Re: ZCMD - Help - by HY - 16.11.2014, 17:55
Re: ZCMD - Help - by NickHaudMTA - 16.11.2014, 17:58
Re: ZCMD - Help - by Shaneisace - 16.11.2014, 18:26
Re: ZCMD - Help - by NickHaudMTA - 16.11.2014, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)