10.02.2013, 14:04
Try this:
Your mistakes were:
You put CMD inside of a callback (That's wrong!).
(playerid, parims[]) ? It's params[].
Forgot "{" after CMD line.
new id Float: amount; - Forgot "," after "id".
It's sscanf, not sccanf.
pawn Код:
CMD:givearmour(playerid, params[])
{
new id, Float:amount;
if(sscanf(params, "uf", id, amount)){ return SendClientMessage(playerid, -1, "[SYTAX] /givearmour [Player ID] [Amount]"); }
SetPlayerArmour(id, amount);
Player[id][armour] = amount;
return 1;
}
You put CMD inside of a callback (That's wrong!).
(playerid, parims[]) ? It's params[].
Forgot "{" after CMD line.
new id Float: amount; - Forgot "," after "id".
It's sscanf, not sccanf.

