Returns wrong
#1

pawn Code:
new Float:Thing[MAX_PLAYERS];

COMMAND:thing(playerid, params[])
{
    new thing, string[128];
    if(sscanf(params, "f", thing)) return SendClientMessage(playerid, -1, "/speed (speed)");
    {
        Thing[playerid] = thing;

        format(string, sizeof(string), "You changed the thing to %f", Thing[playerid]);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}
if i type "/thing 20.0"
then it sais "You changed the thing to 11010048000.000000"
but it should say "You changed the thing to 20.000000"
Reply


Messages In This Thread
Returns wrong - by Unknown123 - 24.06.2011, 04:18
Re: Returns wrong - by Laronic - 24.06.2011, 04:48
Re: Returns wrong - by Unknown123 - 24.06.2011, 04:51

Forum Jump:


Users browsing this thread: 2 Guest(s)