06.07.2012, 21:09
It says unreachable code still here is what is before it
pawn Код:
{
if (strcmp("/cmds", cmdtext, true, 10) == 0)
{
new dialog[500];
strcat(dialog,"{FF0000}/v-Spawn a vehicle of your choice.\n");
strcat(dialog,"{FF0000}/w-List of Weapons.\n");
strcat(dialog,"{FF0000}/pm [ID][TEXT]- to PM a player.\n");
strcat(dialog,"{FF0000}/change-hide the blue bar at bottom of screen.\n{");
strcat(dialog,"{FF0000}/FLY [0-1]- 0(off) 1(on).\n");
strcat(dialog,"{FF0000}/infernus-Spawn an infernus.\n");
strcat(dialog,"{FF0000}/PCJ- Spawn a PCJ-600.\n");
strcat(dialog,"{FF0000}/CHANGENAME- Change name in server without having to leave.\n");
strcat(dialog,"{FF0000}/TIME-Switch to Day or night.\n");
strcat(dialog,"{FF0000}/PJY-Attach objects to your player.\n");
strcat(dialog,"{FF0000}/ACTIONS- list of animations.\n");
strcat(dialog,"{FF0000}/MUSIC-Listen to music.\n");
strcat(dialog,"{FF0000}/MINIGAMES-Do minigames.\n");
strcat(dialog,"{FF0000}/COLORS-Change color of username on CHAT.");
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands",dialog,"OK","CLOSE");
return 1;
}
return 0;
}