22.09.2013, 12:23
Hello, I have a good paintball system in my game-mode but no actual way to get into the game or anything... This is my command to show the dialog...
This is that dialog "PBMAINMENU"
And the errors....
Код:
CMD:paintball(playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid,3,1038.08, -3.98, 1001.28)) { ShowPlayerDialog(playerid, PBMAINMENU, DIALOG_STYLE_LIST, "Paintball","Choose Arena/Set-Up\Purhcase tokens\nPaintball", "Select", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of the paintball waiting room.. "); } } return 1; }
Код:
if(dialogid == PBMAINMENU) // Paintball Arena System { if(response == 1) { switch(listitem) { case 0: // Choose a Arena { PaintballArenaSelection(playerid); } case 1: // Buy Paintball Tokens { PaintballTokenBuyMenu(playerid); } case 2: { if(PlayerInfo[playerid][pAdmin] >= 1337) { PaintballAdminMenu(playerid); } else { PaintballMainMenu(playerid); SendClientMessageEx(playerid, COLOR_GRAD2, "You do not have authorization to access the admin panel."); return 1; } } } } }
Код:
error 027: invalid character constant error 027: invalid character constant error 010: invalid function or declaration