Couple of errors.
#4

And you also forgot to close a bracket and use the "else" statement for the VIP level. It was like using "else" twice in a row.

pawn Код:
CMD:skin(playerid, params[])
{
    if (pInfo[playerid][VIPlevel] < 1) return SendClientMessage(playerid, COLOR_GOLD, "Only Donators can use this command!");
    new skinid;
    if(sscanf(params, "d", skinid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /skin [skinID]");
    SetPlayerSkin(playerid, skinid);
    new string[33];
    format(string, sizeof(string), "You have set your skin ID to %d", skinid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    return 1;
}
Reply


Messages In This Thread
Couple of errors. - by Cena44 - 19.04.2014, 13:03
Re: Couple of errors. - by PrivatioBoni - 19.04.2014, 13:10
Re: Couple of errors. - by Cena44 - 19.04.2014, 13:13
Re: Couple of errors. - by Konstantinos - 19.04.2014, 13:16
Re: Couple of errors. - by Cena44 - 19.04.2014, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)