error 014: invalid statement; not in switch
#1

PHP код:
case 165:
        {
            switch(
response)
            {
                case 
0// Selecting
                   
{
                     switch(
listitem)
                    {
                        case 
1// LSPD
                         
{
                              new 
string[1000];
                             
strcat(string,"/b, /me, /do, /shout, /time, /changepass /enter /exit, /animlist, /togradio, /hud, /cellphone, /afkers, /requestadmin, /plantradio");
                             
strcat(string,"\n/drugs, /pay, /w, /give, /id, /pm, /shake, /tognews, /calllist, /takegun, /newspaper, /togf, /ame, /gloves, /rapsheet");
                             
strcat(string,"\n/togpm, /changename, /wt, /setfreq, /accept, /coin, /walkstyle, /fightstyle, /putgun,/calculate,/togb, /cad, /mreport");
                             
strcat(string,"\n/checkseatbelt, /pickitem, /tickets, /payticket, /guide, /ad, /prefix, /hidenumber, /silencer, /divorce, /blindfold, /unblind");
                             
strcat(string,"\n/appearance, /describe, /inventory, /createnote, /deletenote, /notes, /givenote, /dragoffer, /clothing, /clearchat");
                             
strcat(string,"\n/putciggy, /putbeer, /putwine, /takeciggy, /takebeer, /takewine, /payphone, /drop, /hiddennumber, /buildfire, /(ach)ievements");
                             
strcat(string,"\n/f, /r, /quitfaction, /flist, /factionon, /factionhelp");
                             
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,"Help",string,"Options""Cancel");
                           }
                        case 
2// Selecting
                          
{
                            new 
string[1000], string2[128], text[256];
                            
format(text256,"/vehicle, /rentcar, /windows, /v, /exitcar, /trunk, /dealership, /hood, /carradio, /carseat, /wipers, /poptrunk");
                            
strcat(string,text);
                            
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                            
format(string2,sizeof(string2),"Vehicle Command");
                            
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                         }
                          case 
3// Selecting
                        
{
                            new 
string[1000], string2[128], text[256];
                            
format(text256,"/house, /knock, /doorbell, /tapwater");
                            
strcat(string,text);
                            
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                            
format(string2,sizeof(string2),"House Command");
                            
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                         }
                           case 
4// Selecting
                         
{
                              new 
string[1000], string2[128], text[256];
                              
format(text256,"/bizz, /mic, /bizzname");
                              
strcat(string,text);
                              
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                              
format(string2,sizeof(string2),"Bizz Command");
                              
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                          }
                           case 
5// Selecting
                         
{
                             switch(
GetPVarInt(playerid"Job"))
                              {
                              case 
1SendClientMessage(playeridCOLOR_FADE"Job commands: /repair, /refill.");
                              case 
.. 4SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                              case 
5SendClientMessage(playeridCOLOR_FADE"Job commands: None.");
                              case 
.. 8SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                           }
                           case 
6// Selecting
                         
{
                             switch(
GetPVarInt(playerid"Member"))
                              {
                                  case 
1:
                                {
                                       
SendClientMessage(playeridCOLOR_FADE"ARMY commands: /handcuff, /uncuff, /drag, /tackle, /m, /cblock, /rblock, /duty, /departments.");
                                }
                                case 
2:
                                {
                                   
SendClientMessage(playeridCOLOR_FADE"FBI commands: /prison, /suspect, /mdc, /take, /taze, /handcuff, /uncuff.");
                                   
SendClientMessage(playeridCOLOR_FADE"FBI commands: /drag, /stopdrag.");
                                }
                                case 
3:
                                {
                                   
SendClientMessage(playeridCOLOR_FADE"GOV commands: /govup, /govdown, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend.");
                                   
SendClientMessage(playeridCOLOR_FADE"GOV commands: /drag, /stopdrag, /showbadge,/duty, /pagem.");
                                   
SendClientMessage(playeridCOLOR_FADE"GOV commands: /trainarm, /trainingduty, /gasprice.");
                                }
                                 case 
4:
                                 {
                                     
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /revive, /duty, /uniform, /suspend, /unsuspend, /stretcher, /unstretcher, /treatplayer, /fdduty, /fdcone.");
                                     
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /rcone, /fdlocate, /raise, /hm.");
                                }
                                case 
7:
                                {
                                       
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /prison, /suspect, /mdc, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend, /bolo, /setparole, /unparole.");
                                    
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /drag, /stopdrag, /showbadge, /smokehouse, /setwarrant, /unwarrant, /spike, /breathe, /wireplayer, /policelight.");
                                    
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /radiochannel, /unit, /opencells, /closecells, /raise, /search.");
                                }
                                case 
.. SCRIPT_FACTIONS:
                                 {
                                     
SendClientMessage(playeridCOLOR_FADE"Faction-Extra commands: /tag.");
                                 }
                              }
                              case 
7// Selecting
                            
{
                                if(
GetPVarInt(playerid"Helper") >= 1)
                                 {
                                    
SendClientMessage(playeridCOLOR_FADE"Helper commands: /setint, /setvw, /setskin, /ht, /hname, /passed, /helname, /cntnames, /setage.");
                                 }
                            }
                            case 
8// Selecting
                              
{
                                   if(
GetPVarInt(playerid"DonateRank") >= 1)
                                 {
                                      
SendClientMessage(playeridCOLOR_FADE"Donater commands: /blockpm, /blockedpm, /changecar."); 
Код:
C:\Users\Nate\Desktop\gamemodes\R-RP.pwn(13381) : error 014: invalid statement; not in switch
C:\Users\Nate\Desktop\gamemodes\R-RP.pwn(13381) : warning 215: expression has no effect
C:\Users\Nate\Desktopgamemodes\R-RP.pwn(13381) : error 001: expected token: ";", but found ":"
C:\Users\Nate\Desktop\gamemodes\R-RP.pwn(13381) : error 029: invalid expression, assumed zero
C:\Users\Nate\Desktop\gamemodes\R-RP.pwn(13381) : fatal error 107: too many error messages on one line
Reply
#2

Hello!

I improved your code and you have to add to the missing codes.
PHP код:
case 165:
{
    switch(
response)
    {
        case 
0:
        {
            switch(
listitem)
            {
                case 
1:
                {
                    new 
string[1000];
                    
strcat(string,"/b, /me, /do, /shout, /time, /changepass /enter /exit, /animlist, /togradio, /hud, /cellphone, /afkers, /requestadmin, /plantradio");
                     
strcat(string,"\n/drugs, /pay, /w, /give, /id, /pm, /shake, /tognews, /calllist, /takegun, /newspaper, /togf, /ame, /gloves, /rapsheet");
                      
strcat(string,"\n/togpm, /changename, /wt, /setfreq, /accept, /coin, /walkstyle, /fightstyle, /putgun,/calculate,/togb, /cad, /mreport");
                       
strcat(string,"\n/checkseatbelt, /pickitem, /tickets, /payticket, /guide, /ad, /prefix, /hidenumber, /silencer, /divorce, /blindfold, /unblind");
                    
strcat(string,"\n/appearance, /describe, /inventory, /createnote, /deletenote, /notes, /givenote, /dragoffer, /clothing, /clearchat");
                    
strcat(string,"\n/putciggy, /putbeer, /putwine, /takeciggy, /takebeer, /takewine, /payphone, /drop, /hiddennumber, /buildfire, /(ach)ievements");
                    
strcat(string,"\n/f, /r, /quitfaction, /flist, /factionon, /factionhelp");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,"Help",string,"Options""Cancel");
                }
                case 
2:
                {
                      new 
string[1000], string2[128], text[256];
                     
format(text256,"/vehicle, /rentcar, /windows, /v, /exitcar, /trunk, /dealership, /hood, /carradio, /carseat, /wipers, /poptrunk");
                       
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Vehicle Command");
                     
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
3:
                {
                     new 
string[1000], string2[128], text[256];
                    
format(text256,"/house, /knock, /doorbell, /tapwater");
                     
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"House Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
4:
                {
                    new 
string[1000], string2[128], text[256];
                     
format(text256,"/bizz, /mic, /bizzname");
                    
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Bizz Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
5// Selecting
                 
{
                      switch(
GetPVarInt(playerid"Job"))
                    {
                         case 
1SendClientMessage(playeridCOLOR_FADE"Job commands: /repair, /refill.");
                           case 
.. 4SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                           case 
5SendClientMessage(playeridCOLOR_FADE"Job commands: None.");
                           case 
.. 8SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                       }
                }
                case 
6:
                {
                    switch(
GetPVarInt(playerid,"Member"))
                    {
                        case 
1:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"ARMY commands: /handcuff, /uncuff, /drag, /tackle, /m, /cblock, /rblock, /duty, /departments.");
                        }
                        case 
2:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /prison, /suspect, /mdc, /take, /taze, /handcuff, /uncuff.");
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /drag, /stopdrag.");
                        }
                        case 
3:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /govup, /govdown, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /drag, /stopdrag, /showbadge,/duty, /pagem.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /trainarm, /trainingduty, /gasprice.");
                        }
                        case 
4:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /revive, /duty, /uniform, /suspend, /unsuspend, /stretcher, /unstretcher, /treatplayer, /fdduty, /fdcone.");
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /rcone, /fdlocate, /raise, /hm.");
                        }
                        case 
7:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /prison, /suspect, /mdc, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend, /bolo, /setparole, /unparole.");
                              
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /drag, /stopdrag, /showbadge, /smokehouse, /setwarrant, /unwarrant, /spike, /breathe, /wireplayer, /policelight.");
                               
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /radiochannel, /unit, /opencells, /closecells, /raise, /search.");
                        }
                        case 
.. SCRIPT_FACTIONS:
                          {
                                     
SendClientMessage(playeridCOLOR_FADE"Faction-Extra commands: /tag.");
                           }
                    }
                }
                case 
7:
                {
                    if(
GetPVarInt(playerid"Helper") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Helper commands: /setint, /setvw, /setskin, /ht, /hname, /passed, /helname, /cntnames, /setage.");
                    }
                }
                case 
8:
                {
                    if(
GetPVarInt(playerid,"DonateRank") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Donater commands: /blockpm, /blockedpm, /changecar.");
                    }
                }
            }
        }
    }
    return 
1;

Reply
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

I improved your code and you have to add to the missing codes.
PHP код:
case 165:
{
    switch(
response)
    {
        case 
0:
        {
            switch(
listitem)
            {
                case 
1:
                {
                    new 
string[1000];
                    
strcat(string,"/b, /me, /do, /shout, /time, /changepass /enter /exit, /animlist, /togradio, /hud, /cellphone, /afkers, /requestadmin, /plantradio");
                     
strcat(string,"\n/drugs, /pay, /w, /give, /id, /pm, /shake, /tognews, /calllist, /takegun, /newspaper, /togf, /ame, /gloves, /rapsheet");
                      
strcat(string,"\n/togpm, /changename, /wt, /setfreq, /accept, /coin, /walkstyle, /fightstyle, /putgun,/calculate,/togb, /cad, /mreport");
                       
strcat(string,"\n/checkseatbelt, /pickitem, /tickets, /payticket, /guide, /ad, /prefix, /hidenumber, /silencer, /divorce, /blindfold, /unblind");
                    
strcat(string,"\n/appearance, /describe, /inventory, /createnote, /deletenote, /notes, /givenote, /dragoffer, /clothing, /clearchat");
                    
strcat(string,"\n/putciggy, /putbeer, /putwine, /takeciggy, /takebeer, /takewine, /payphone, /drop, /hiddennumber, /buildfire, /(ach)ievements");
                    
strcat(string,"\n/f, /r, /quitfaction, /flist, /factionon, /factionhelp");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,"Help",string,"Options""Cancel");
                }
                case 
2:
                {
                      new 
string[1000], string2[128], text[256];
                     
format(text256,"/vehicle, /rentcar, /windows, /v, /exitcar, /trunk, /dealership, /hood, /carradio, /carseat, /wipers, /poptrunk");
                       
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Vehicle Command");
                     
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
3:
                {
                     new 
string[1000], string2[128], text[256];
                    
format(text256,"/house, /knock, /doorbell, /tapwater");
                     
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"House Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
4:
                {
                    new 
string[1000], string2[128], text[256];
                     
format(text256,"/bizz, /mic, /bizzname");
                    
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Bizz Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
5// Selecting
                 
{
                      switch(
GetPVarInt(playerid"Job"))
                    {
                         case 
1SendClientMessage(playeridCOLOR_FADE"Job commands: /repair, /refill.");
                           case 
.. 4SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                           case 
5SendClientMessage(playeridCOLOR_FADE"Job commands: None.");
                           case 
.. 8SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                       }
                }
                case 
6:
                {
                    switch(
GetPVarInt(playerid,"Member"))
                    {
                        case 
1:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"ARMY commands: /handcuff, /uncuff, /drag, /tackle, /m, /cblock, /rblock, /duty, /departments.");
                        }
                        case 
2:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /prison, /suspect, /mdc, /take, /taze, /handcuff, /uncuff.");
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /drag, /stopdrag.");
                        }
                        case 
3:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /govup, /govdown, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /drag, /stopdrag, /showbadge,/duty, /pagem.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /trainarm, /trainingduty, /gasprice.");
                        }
                        case 
4:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /revive, /duty, /uniform, /suspend, /unsuspend, /stretcher, /unstretcher, /treatplayer, /fdduty, /fdcone.");
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /rcone, /fdlocate, /raise, /hm.");
                        }
                        case 
7:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /prison, /suspect, /mdc, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend, /bolo, /setparole, /unparole.");
                              
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /drag, /stopdrag, /showbadge, /smokehouse, /setwarrant, /unwarrant, /spike, /breathe, /wireplayer, /policelight.");
                               
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /radiochannel, /unit, /opencells, /closecells, /raise, /search.");
                        }
                        case 
.. SCRIPT_FACTIONS:
                          {
                                     
SendClientMessage(playeridCOLOR_FADE"Faction-Extra commands: /tag.");
                           }
                    }
                }
                case 
7:
                {
                    if(
GetPVarInt(playerid"Helper") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Helper commands: /setint, /setvw, /setskin, /ht, /hname, /passed, /helname, /cntnames, /setage.");
                    }
                }
                case 
8:
                {
                    if(
GetPVarInt(playerid,"DonateRank") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Donater commands: /blockpm, /blockedpm, /changecar.");
                    }
                }
            }
        }
    }
    return 
1;

Now error thx but now the command not working i mean if i choose like the vehicle commands nothing happends

PHP код:
}
COMMAND:help(playeridparams[])
{
    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_LIST,"Help Menu","{33FF66}Basic commands\n{33FF66}Vehicle commands\n{33FF66}House commands\n{33FF66}Bizz commands\n{33FF66}Job commands\n{33FF66}Facion commands\n{33FF66}Helper commands\n{33FF66}Donator commands\n{33FF66}Exit Vehicle","Continue""Cancel");
    return 
1;

Reply
#4

PHP код:
case 165:
{
    switch(
response)
    {
        case 
0:
        {
            switch(
listitem)
            {
                case 
0:
                {
                    new 
string[1000];
                    
strcat(string,"/b, /me, /do, /shout, /time, /changepass /enter /exit, /animlist, /togradio, /hud, /cellphone, /afkers, /requestadmin, /plantradio");
                     
strcat(string,"\n/drugs, /pay, /w, /give, /id, /pm, /shake, /tognews, /calllist, /takegun, /newspaper, /togf, /ame, /gloves, /rapsheet");
                      
strcat(string,"\n/togpm, /changename, /wt, /setfreq, /accept, /coin, /walkstyle, /fightstyle, /putgun,/calculate,/togb, /cad, /mreport");
                       
strcat(string,"\n/checkseatbelt, /pickitem, /tickets, /payticket, /guide, /ad, /prefix, /hidenumber, /silencer, /divorce, /blindfold, /unblind");
                    
strcat(string,"\n/appearance, /describe, /inventory, /createnote, /deletenote, /notes, /givenote, /dragoffer, /clothing, /clearchat");
                    
strcat(string,"\n/putciggy, /putbeer, /putwine, /takeciggy, /takebeer, /takewine, /payphone, /drop, /hiddennumber, /buildfire, /(ach)ievements");
                    
strcat(string,"\n/f, /r, /quitfaction, /flist, /factionon, /factionhelp");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,"Help",string,"Options""Cancel");
                }
                case 
1:
                {
                      new 
string[1000], string2[128], text[256];
                     
format(text256,"/vehicle, /rentcar, /windows, /v, /exitcar, /trunk, /dealership, /hood, /carradio, /carseat, /wipers, /poptrunk");
                       
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Vehicle Command");
                     
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
2:
                {
                     new 
string[1000], string2[128], text[256];
                    
format(text256,"/house, /knock, /doorbell, /tapwater");
                     
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"House Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
3:
                {
                    new 
string[1000], string2[128], text[256];
                     
format(text256,"/bizz, /mic, /bizzname");
                    
strcat(string,text);
                     
//format(string,sizeof(string), text[0], text[1], text[2], text[3], text[4], text[5], text[6]);
                     
format(string2,sizeof(string2),"Bizz Command");
                    
ShowPlayerDialog(playerid,165,DIALOG_STYLE_MSGBOX,string2,string,"""Cancel");
                }
                case 
4// Selecting
                 
{
                      switch(
GetPVarInt(playerid"Job"))
                    {
                         case 
1SendClientMessage(playeridCOLOR_FADE"Job commands: /repair, /refill.");
                           case 
.. 4SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                           case 
5SendClientMessage(playeridCOLOR_FADE"Job commands: None.");
                           case 
.. 8SendClientMessage(playeridCOLOR_FADE"Job commands: No commands, just enter the vehicle and do your route.");
                       }
                }
                case 
5:
                {
                    switch(
GetPVarInt(playerid,"Member"))
                    {
                        case 
1:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"ARMY commands: /handcuff, /uncuff, /drag, /tackle, /m, /cblock, /rblock, /duty, /departments.");
                        }
                        case 
2:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /prison, /suspect, /mdc, /take, /taze, /handcuff, /uncuff.");
                            
SendClientMessage(playeridCOLOR_FADE"FBI commands: /drag, /stopdrag.");
                        }
                        case 
3:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /govup, /govdown, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /drag, /stopdrag, /showbadge,/duty, /pagem.");
                            
SendClientMessage(playeridCOLOR_FADE"GOV commands: /trainarm, /trainingduty, /gasprice.");
                        }
                        case 
4:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /revive, /duty, /uniform, /suspend, /unsuspend, /stretcher, /unstretcher, /treatplayer, /fdduty, /fdcone.");
                            
SendClientMessage(playeridCOLOR_FADE"LSFD commands: /rcone, /fdlocate, /raise, /hm.");
                        }
                        case 
7:
                        {
                            
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /prison, /suspect, /mdc, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend, /bolo, /setparole, /unparole.");
                              
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /drag, /stopdrag, /showbadge, /smokehouse, /setwarrant, /unwarrant, /spike, /breathe, /wireplayer, /policelight.");
                               
SendClientMessage(playeridCOLOR_FADE"LSPD commands: /radiochannel, /unit, /opencells, /closecells, /raise, /search.");
                        }
                        case 
.. SCRIPT_FACTIONS:
                          {
                                     
SendClientMessage(playeridCOLOR_FADE"Faction-Extra commands: /tag.");
                           }
                    }
                }
                case 
6:
                {
                    if(
GetPVarInt(playerid"Helper") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Helper commands: /setint, /setvw, /setskin, /ht, /hname, /passed, /helname, /cntnames, /setage.");
                    }
                }
                case 
7:
                {
                    if(
GetPVarInt(playerid,"DonateRank") >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_FADE"Donater commands: /blockpm, /blockedpm, /changecar.");
                    }
                }
            }
        }
    }
    return 
1;

Please try this. listitems are beginning at 0, and you started at 1.
Reply
#5

I did change from 0 to 1 and now its working lol but thanks alot dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)