Very new to scripting please don't be too mean xD
#2

pawn Код:
CMD:setskin(playerid, params[])
{
    new targetid, skinid, str[90], name[MAX_PLAYER_NAME];
    if(sscanf(params, "ii", targetid, skinid))  
    return SendClientMessage(playerid, -1, "[USAGE]: /setskin [playerid] [skinid]");
    SetPlayerSkin(targetid, skinid);
    GetPlayerName(targetid, name, sizeof(name));
    format(str, sizeof(str), "You have set %s's skin id to %i.",name, skinid);
    SendClientMessage(playerid, -1, str);
    return 1;
}
SendClientMessage has only 3 paramaters, use format for those.
Reply


Messages In This Thread
Very new to scripting please don't be too mean xD - by aKnoxx - 24.12.2018, 05:17
Re: Very new to scripting please don't be too mean xD - by UFF - 24.12.2018, 05:20
Re: Very new to scripting please don't be too mean xD - by aKnoxx - 24.12.2018, 05:41
Re: Very new to scripting please don't be too mean xD - by aKnoxx - 24.12.2018, 16:55
Re: Very new to scripting please don't be too mean xD - by TheToretto - 24.12.2018, 16:59
Re: Very new to scripting please don't be too mean xD - by RogueDrifter - 24.12.2018, 17:04
Re: Very new to scripting please don't be too mean xD - by aKnoxx - 24.12.2018, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)