help class error / warnings
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
PHP код:
        case .. 11Gang[playerid] = aztecas
         if(
GetPlayerScore(playerid) > 500
           { 
            case 
12 .. 14Gang[playerid] = cops
        } 
You can't do this... That's why it's erroring out.

https://sampwiki.blast.hk/wiki/Control_Structures#case

You should try using braces ( { } ) more.

Код:
case 12 .. 14:
{
    if(GetPlayerScore(playerid) > 500)
    {
        Gang[playerid] = cops;
    }
}
oh thanks bro

@edit
however any User with a score lower than 500 can select the police
Reply


Messages In This Thread
help class error / warnings - by iSoaD - 14.05.2016, 22:22
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 22:43
Re: help class error / warnings - by iSoaD - 14.05.2016, 22:54
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 22:58
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:02
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:07
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:12
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:18
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:22
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:44

Forum Jump:


Users browsing this thread: 3 Guest(s)