C:\Users\selma\Desktop\Samp\gamemodes\Lerenscripte n.pwn(526) : error 001: expected token: ")", but found "{" C:\Users\selma\Desktop\Samp\gamemodes\Lerenscripte n.pwn(536) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
CMD: skin(playerid, params[]) { new string[128], skinid; if (IsPlayerAdmin(playerid)) { if(sscanf(params, "d", skinid) { SendClientMessage(playerid, -1, "SYNTAX: /skin [ID]"); } else { SetPlayerSkin(playerid, skinid); format(string, sizeof(string), "You have set your skin to %d", skinid); SendClientMessage(playerid, -1, string); } } return 1; } |
if(sscanf(params, "d", skinid)
CMD:skin(playerid, params[])
{
new string[128], skinid;
if (IsPlayerAdmin(playerid))
{
if(sscanf(params, "d", skinid))
{
SendClientMessage(playerid, -1, "SYNTAX: /skin [ID]");
}
else
{
SetPlayerSkin(playerid, skinid);
format(string, sizeof(string), "You have set your skin to %d", skinid);
SendClientMessage(playerid, -1, string);
}
}
return 1;
}
Код:
CMD: skin(playerid, params[]) Код:
CMD:skin(playerid, params[]) Spacing in pawn is bad, especially when processing a command. |