28.09.2013, 07:35
Here I have my /help command
Everytime I try to compile my script with it,it makes pawno stop responding
Everytime I try to compile my script with it,it makes pawno stop responding
pawn Код:
YCMD:help(playerid,params[],help)
{
switch (pInfo[playerid][Adminlevel])
{
case 0:
{
new Commands[512];
strcat(Commands,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n",sizeof(Commands));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands, "OK", "");
}
case 1:
{
new Commands1[512];
strcat(Commands1,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n|***Admin LvL 1 Commands***|\n\n[ #(Text) ] [ /GetIp ] [ /Warn ] [ /Heal ] [ /Get ]\n\n[ /Goto ] [ /Armour ] [ /Ann ] [ /Fix ] [ /Flip ] [ /PlayerInfo ]\n\n", sizeof(Commands1));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands1, "OK", "Cancel");
}
case 2:
{
new Commands2[512];
strcat(Commands2,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n|***Admin LvL 1 Commands***|\n\n[ #(Text) ] [ /GetIp ] [ /Warn ] [ /Heal ] [ /Get ]\n\n[ /Goto ] [ /Armour ] [ /Ann ] [ /Fix ] [ /Flip ] [ /PlayerInfo ]\n\n|***Admin LvL 2 Commands***|\n\n[ /Banwarn ] [ /Kick ] [ /Cchat ] [ /Sethealth ] [ /Givemoney ]\n\n[ /Burn ] [ /Mute ] [ /Unmute ] [ /Armour ] [ /Setweather ] [ /Settime ]\n\n", sizeof(Commands2));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands2, "OK", "Cancel");
}
case 3:
{
new Commands3[512];
strcat(Commands3,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n|***Admin LvL 1 Commands***|\n\n[ #(Text) ] [ /GetIp ] [ /Warn ] [ /Heal ] [ /Get ]\n\n[ /Goto ] [ /Armour ] [ /Ann ] [ /Fix ] [ /Flip ] [ /PlayerInfo ]\n\n|***Admin LvL 2 Commands***|\n\n[ /Banwarn ] [ /Kick ] [ /Cchat ] [ /Sethealth ] [ /Givemoney ]\n\n[ /Burn ] [ /Mute ] [ /Unmute ] [ /Armour ] [ /Setweather ] [ /Settime ]\n\n|***Admin LvL 3 Commands***|\n\n[ /Ban ] [ /Explode ] [ /Setscore ] [ /Slap ] [ /Setskin ] [ /Setarmour ] [ /Giveweap ] [ /Disarm ] [ /Healall ] [ /Armourall ] [ /Freeze ] [ /Unfreeze ]\n\n", sizeof(Commands3));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands3, "OK", "Cancel");
}
case 4:
{
new Commands4[512];
strcat(Commands4,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n|***Admin LvL 1 Commands***|\n\n[ #(Text) ] [ /GetIp ] [ /Warn ] [ /Heal ] [ /Get ]\n\n[ /Goto ] [ /Armour ] [ /Ann ] [ /Fix ] [ /Flip ] [ /PlayerInfo ]\n\n|***Admin LvL 2 Commands***|\n\n[ /Banwarn ] [ /Kick ] [ /Cchat ] [ /Sethealth ] [ /Givemoney ]\n\n[ /Burn ] [ /Mute ] [ /Unmute ] [ /Armour ] [ /Setweather ] [ /Settime ]\n\n|***Admin LvL 3 Commands***|\n\n[ /Ban ] [ /Explode ] [ /Setscore ] [ /Slap ] [ /Setskin ] [ /Setarmour ] [ /Giveweap ] [ /Disarm ] [ /Healall ] [ /Armourall ] [ /Freeze ] [ /Unfreeze ]\n\n|***Admin LvL 4 Commands***|\n\n[ /Akill ] [ /Resetscore ] [ /Resetmoney ]\n\n", sizeof(Commands4));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands4, "OK", "Cancel");
}
case 5:
{
new Commands5[512];
strcat(Commands5,"|***Server Commands***|\n\n[ /Rules] [ /ServerFeatures ] [ /Credits ] [ /Admins ] [ /Report ]\n\n|***Chat Commands***|\n\n[ /G(Text) ]\n\n|***Team Commands***|\n\n[ /Teams ] [ /MyTeam ] [ /ChangeTeam ]\n\n|***Player Commands***|\n\n[ /Stats ] [ /Pm ] [ /Kill ] [/Pay] [ /Shop ]\n\n|***Radio Commands***|\n\n[ /RadioHelp ] [ /SetRadio ]\n\n|***Admin LvL 1 Commands***|\n\n[ #(Text) ] [ /GetIp ] [ /Warn ] [ /Heal ] [ /Get ]\n\n[ /Goto ] [ /Armour ] [ /Ann ] [ /Fix ] [ /Flip ] [ /PlayerInfo ]\n\n|***Admin LvL 2 Commands***|\n\n[ /Banwarn ] [ /Kick ] [ /Cchat ] [ /Sethealth ] [ /Givemoney ]\n\n[ /Burn ] [ /Mute ] [ /Unmute ] [ /Armour ] [ /Setweather ] [ /Settime ]\n\n|***Admin LvL 3 Commands***|\n\n[ /Ban ] [ /Explode ] [ /Setscore ] [ /Slap ] [ /Setskin ] [ /Setarmour ] [ /Giveweap ] [ /Disarm ] [ /Healall ] [ /Armourall ] [ /Freeze ] [ /Unfreeze ]\n\n|***Admin LvL 4 Commands***|\n\n[ /Akill ] [ /Resetscore ] [ /Resetmoney ]\n\n|***Admin LvL 5 Commands***|\n\n[ /Setadmin ] [ /Makevip ]\n\n", sizeof(Commands5));
ShowPlayerDialog(playerid,COMMANDS_DIALOG, DIALOG_STYLE_MSGBOX, ""COL_BLUE"Sniper War Commands",Commands5, "OK", "Cancel");
}
}
return 1;
}