06.07.2012, 13:50
Код:
(2700) : error 076: syntax error in the expression, or invalid function call (2720) : error 076: syntax error in the expression, or invalid function call (5400) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
{//
if(dialogid == DIALOG_PLAYERINFO)
{//
if(response == 1)
{//
for(new i; i <= maxid; i++)
{//
if(IsPlayerConnected(i))
{
format(infoStr, sizeof(infoStr), "{FFFF00}%s {99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ",GetPlayerName,GetPlayerFPS(playerid),GetPlayerPing,PlayerInfo[playerid][PlayerRoundKills]); // linha 2700
}
}
for(new i; i <= maxid; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerDialog(playerid, DIALOG_PLAYERINFO, DIALOG_STYLE_MSGBOX, "{FF000F}Information:", infoStr, "Refresh", "Close");
}
}//
return 1;
}//
}//
if(dialogid == Click)
{
new string[256];
if(response)//botгo 1
{
if(listitem == 0)
{
format(string,sizeof(string),"{33AA33}Ping: {FFFFFF}%d {33AA33}FPS: {FFFFFF}%d ",GetPlayerPing(playerid),GetPlayerFPS(playerid));
ShowPlayerDialog(playerid, Click, DIALOG_STYLE_MSGBOX, "Informaзхes", string, "Ok", "Cancelar");// linha 2720
return 1;
}
}
return 1;
}
PHP код:
else if(strcmp(cmd,"/playerinfo",true)==0)
{
for(new i; i <= maxid; i++)
{
if(IsPlayerConnected(i))
{
format(infoStr, sizeof(infoStr), "{FFFF00}%s \n{99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ", GetPlayerName,GetPlayerFPS,GetPlayerPing,PlayerInfo[playerid][PlayerRoundKills]);
ShowPlayerDialog(playerid, DIALOG_PLAYERINFO, DIALOG_STYLE_MSGBOX, "{FF000F}Information:", infoStr, "Refresh", "Close");
}
}
for(new i; i <= maxid; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerDialog(playerid, DIALOG_PLAYERINFO, DIALOG_STYLE_MSGBOX, "{FF000F}Information:", infoStr, "Refresh", "Close");
}
}
return 1;
}