24.06.2011, 04:18
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;
}
then it sais "You changed the thing to 11010048000.000000"
but it should say "You changed the thing to 20.000000"