C:\Users\Oscar\Desktop\MrM Original\gamemodes\mrm.pwn(47181) : error 076: syntax error in the expression, or invalid function call
C:\Users\Oscar\Desktop\MrM Original\gamemodes\mrm.pwn(50533) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
if(strcmp(cmd, "/restart", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAnAdmin(playerid,6))
{
if(RestartS == 0)
{
47181>>> ShowPlayerDialog(playerid,Srestart,DIALOG_STYLE_INPUT,"Server Restart","Bitte gebe den Grund des Server Restarts ein.\n(Achtung: Die Nachricht kann jeder lesen!)","Starten","Abbrechen");
}
else if(RestartS == 1)
{
SendClientMessage(playerid,COLOR_GRAD1,"Es wurde bereits ein Serverrestart gestartet!");
}
}
else
{
SendClientMessage(playerid,0xFF0000FF,"Du bist kein Admin!");
}
}
return 1;
}
50533>>>if(dialogid == Srestart)
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
new restartstring[128];
SendClientMessage(playerid,COLOR_GREEN,"Der Serverrestart wurde erfolgreich gestartet!");
format(restartstring,sizeof(restartstring),"[Server]: Der Server startet in 2 Minuten automatisch neu! Grund: %s",inputtext);
SendClientMessageToAll(COLOR_RED,restartstring);
RestartS = 1;
SetTimerEx("Srestart",120000,false,"i",playerid);
}
}