weaponconfig.inc error
#9

Try this and see if this has any effect:
PHP код:
CMD:gang(playeridparams[])
{
    new 
paraminteger;
    if(!
sscanf(params"'skin'I(-1)"paraminteger))
    {
        if(
paraminteger == -1) return SendClientMessage(playerid, -1"Usage: /gang skin <id>");
        if(!
GANGINFO[playerid][ingang]) return SendClientMessage(playeridCOLOR_ERROR"You are not in a gang");
        if(
GetPlayerMoney(playerid) < MIN_CASH_TO_CHANGE_SKIN) return SendClientMessage(playeridCOLOR_ERROR"You don't have enough money");
        switch(
paraminteger)
        {
            case 
41556385102 .. 110114 .. 117163 .. 165265 .. 267269 .. 271284 .. 286: return SendClientMessage(playeridCOLOR_ERROR"Invalid skin ID");
            default:
            {
                if(!(
<= paraminteger <= 299)) return SendClientMessage(playeridCOLOR_ERROR"Invalid skin ID");
                
GANGINFO[playerid][gskin] = paraminteger;
                
SetPlayerSkin(playeridparaminteger);
            }
        }
    }
    else 
SendClientMessage(playeridCOLOR_ERROR"Usage: /gang  <...> ");
    return 
1;

Reply


Messages In This Thread
weaponconfig.inc error + Command error[(edit) view last post] - by GameOvr - 17.12.2018, 05:22
Re: weaponconfig.inc error - by Threshold - 17.12.2018, 09:13
Re: weaponconfig.inc error - by GameOvr - 17.12.2018, 11:19
Re: weaponconfig.inc error - by Kaliber - 17.12.2018, 11:25
Re: weaponconfig.inc error - by Threshold - 17.12.2018, 14:14
Re: weaponconfig.inc error - by GameOvr - 18.12.2018, 07:53
Re: weaponconfig.inc error - by Threshold - 18.12.2018, 09:25
Re: weaponconfig.inc error - by GameOvr - 18.12.2018, 14:39
Re: weaponconfig.inc error - by Threshold - 19.12.2018, 03:02

Forum Jump:


Users browsing this thread: 1 Guest(s)