What did I do wrong?
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], skinstring[128];
    sscanf(text, "s[128]", skinstring);
    if(strval(skinstring) < 1 || strval(skinstring) > 299)
    {
        SetPlayerSkin(playerid, strval(skinstring));
        format(string, sizeof(string), "** Your skin has been set to the skin with the id %s.", skinstring);
        SendClientMessage(playerid, COLOR_WHITE, string);
        return 0;
    }
    else
    {
        format(string, sizeof(string), "** The skin %s doesn't exist.", skinstring);
        SendClientMessage(playerid, COLOR_WHITE, string);
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
What did I do wrong? - by ZachKnoxx - 20.05.2014, 00:27
Re: What did I do wrong? - by SickAttack - 20.05.2014, 00:53
AW: What did I do wrong? - by Madd92 - 20.05.2014, 00:55
Re: AW: What did I do wrong? - by ZachKnoxx - 20.05.2014, 11:32
Re: What did I do wrong? - by Konstantinos - 20.05.2014, 11:43
Re: What did I do wrong? - by ZachKnoxx - 20.05.2014, 11:46
Re: What did I do wrong? - by SickAttack - 20.05.2014, 23:34
Re: What did I do wrong? - by ZachKnoxx - 20.05.2014, 23:59
Re: What did I do wrong? - by SickAttack - 21.05.2014, 00:05
Re: What did I do wrong? - by ZachKnoxx - 21.05.2014, 00:09

Forum Jump:


Users browsing this thread: 3 Guest(s)