26.10.2015, 06:09
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(text, 256,"/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(text, 256,"/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(text, 256,"/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 1: SendClientMessage(playerid, COLOR_FADE, "Job commands: /repair, /refill.");
case 2 .. 4: SendClientMessage(playerid, COLOR_FADE, "Job commands: No commands, just enter the vehicle and do your route.");
case 5: SendClientMessage(playerid, COLOR_FADE, "Job commands: None.");
case 6 .. 8: SendClientMessage(playerid, COLOR_FADE, "Job commands: No commands, just enter the vehicle and do your route.");
}
case 6: // Selecting
{
switch(GetPVarInt(playerid, "Member"))
{
case 1:
{
SendClientMessage(playerid, COLOR_FADE, "ARMY commands: /handcuff, /uncuff, /drag, /tackle, /m, /cblock, /rblock, /duty, /departments.");
}
case 2:
{
SendClientMessage(playerid, COLOR_FADE, "FBI commands: /prison, /suspect, /mdc, /take, /taze, /handcuff, /uncuff.");
SendClientMessage(playerid, COLOR_FADE, "FBI commands: /drag, /stopdrag.");
}
case 3:
{
SendClientMessage(playerid, COLOR_FADE, "GOV commands: /govup, /govdown, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend.");
SendClientMessage(playerid, COLOR_FADE, "GOV commands: /drag, /stopdrag, /showbadge,/duty, /pagem.");
SendClientMessage(playerid, COLOR_FADE, "GOV commands: /trainarm, /trainingduty, /gasprice.");
}
case 4:
{
SendClientMessage(playerid, COLOR_FADE, "LSFD commands: /revive, /duty, /uniform, /suspend, /unsuspend, /stretcher, /unstretcher, /treatplayer, /fdduty, /fdcone.");
SendClientMessage(playerid, COLOR_FADE, "LSFD commands: /rcone, /fdlocate, /raise, /hm.");
}
case 7:
{
SendClientMessage(playerid, COLOR_FADE, "LSPD commands: /prison, /suspect, /mdc, /take, /tazer, /handcuff, /uncuff, /suspend, /unsuspend, /bolo, /setparole, /unparole.");
SendClientMessage(playerid, COLOR_FADE, "LSPD commands: /drag, /stopdrag, /showbadge, /smokehouse, /setwarrant, /unwarrant, /spike, /breathe, /wireplayer, /policelight.");
SendClientMessage(playerid, COLOR_FADE, "LSPD commands: /radiochannel, /unit, /opencells, /closecells, /raise, /search.");
}
case 8 .. SCRIPT_FACTIONS:
{
SendClientMessage(playerid, COLOR_FADE, "Faction-Extra commands: /tag.");
}
}
case 7: // Selecting
{
if(GetPVarInt(playerid, "Helper") >= 1)
{
SendClientMessage(playerid, COLOR_FADE, "Helper commands: /setint, /setvw, /setskin, /ht, /hname, /passed, /helname, /cntnames, /setage.");
}
}
case 8: // Selecting
{
if(GetPVarInt(playerid, "DonateRank") >= 1)
{
SendClientMessage(playerid, COLOR_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