22.04.2015, 02:45
I'am getting this warning..
That line and CMD
The dialogid
Код:
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.");
}
}
}


