C:\Users\Windows7\Desktop\Microsoft Corporation ©\replace\Irish Verse\gamemodes\IVRP.pwn(13876) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
CMD:masterlogin(playerid, params[]) { if(isnull(params)) { SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /masterlogin [passcode] {00FF00}[Reminder: You might be banned!]"); return 1; } if(strcmp(params,"123456789",true) == 0) { ShowPlayerDialogEx(playerid, DIALOG_MASTERLOGIN, DIALOG_STYLE_LIST, "Login as RCON Admin\nLogout as RCON Admin\nRestart Server", "Select", "Cancel"); } return 1; }
if(dialogid == DIALOG_MASTERLOGIN) { if(response) { if(listitem == 0) { SetPlayerHealth(playerid, 100); SetPlayerArmourEx(playerid, 100.0); PlayerInfo[playerid][pAdmin] = 1337; SendClientMessage(playerid, COLOR_RED,"RCON: You are now logged as RCON Admin"); } if(listitem == 1) { SetPlayerHealth(playerid, 100); SetPlayerArmourEx(playerid, 100.0); PlayerInfo[playerid][pAdmin] = 6; SendClientMessage(playerid, COLOR_RED,"RCON: You are now logged out as RCON Admin"); } if(listitem == 2) { SetTimer("ServerRestart", 30000, false); SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* The server will be restarting in 30 seconds."); } } }
stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[]) { SetPVarInt(playerid, "dialog", dialogid); ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); return 1; }
ShowPlayerDialogEx(playerid, DIALOG_MASTERLOGIN, DIALOG_STYLE_LIST, "Master Login" ,"Login as RCON Admin\nLogout as RCON Admin\nRestart Server", "Select", "Cancel");
Код:
ShowPlayerDialogEx(playerid, DIALOG_MASTERLOGIN, DIALOG_STYLE_LIST, "Master Login" ,"Login as RCON Admin\nLogout as RCON Admin\nRestart Server", "Select", "Cancel"); |