08.01.2011, 22:43
Hey guys. I want to make a simple DCMD cmd.
How can this be wrong? XD
I really don't see the problem
It just has almost no effect.
How can this be wrong? XD
pawn Код:
dcmd_setfun(playerid, params[])
{
new
id,
amount;
if (sscanf(params, "ud", id, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /setfun playerid amount");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
else
{
funpoints[id] = amount;
SendClientMessage(iplayerid, 0xFF0000AA,"you've setted funpoints");
SendClientMessage(id, 0x00FF00AA, "your funpoints are setted");
}
return 1;
}
It just has almost no effect.