[Ajuda] Erros =S
#1

Код:
(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.
os 2 primeiros erros nesse dialog:

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]){
{
//
        
if(dialogid == DIALOG_PLAYERINFO)
        {
//
                
if(response == 1)
                {
//
                      
for(new i<= maxidi++)
                        {
//
                                
if(IsPlayerConnected(i))
                                {
                                    
format(infoStrsizeof(infoStr), "{FFFF00}%s {99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ",GetPlayerName,GetPlayerFPS(playerid),GetPlayerPing,PlayerInfo[playerid][PlayerRoundKills]); // linha 2700
                                
}
                        }
                for(new 
i<= maxidi++)
                  {
                if(
IsPlayerConnected(i))
                {
                    
ShowPlayerDialog(playeridDIALOG_PLAYERINFODIALOG_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(playeridClickDIALOG_STYLE_MSGBOX"Informaзхes"string"Ok""Cancelar");// linha 2720
        
return 1;
         }
          
    }
        return 
1;

e o erro na linha 5400

PHP код:
    else if(strcmp(cmd,"/playerinfo",true)==0)
{
        for(new 
i<= maxidi++)
        {
                if(
IsPlayerConnected(i))
                {
                      
format(infoStrsizeof(infoStr), "{FFFF00}%s \n{99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d "GetPlayerName,GetPlayerFPS,GetPlayerPing,PlayerInfo[playerid][PlayerRoundKills]);
                        
ShowPlayerDialog(playeridDIALOG_PLAYERINFODIALOG_STYLE_MSGBOX"{FF000F}Information:"infoStr"Refresh""Close");
                }
        }
        for(new 
i<= maxidi++)
        {
                if(
IsPlayerConnected(i))
                {
                        
ShowPlayerDialog(playeridDIALOG_PLAYERINFODIALOG_STYLE_MSGBOX"{FF000F}Information:"infoStr"Refresh""Close");
                }
        }
        return 
1;

Reply
#2

Nгo й assim que se usa GetPlayerName
pawn Код:
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome); //coloque nome no lugar de GetPlayerName no format
GetPlayerPing tambйm estб errado, sem parвmetros.
Reply
#3

pawn Код:
if(strcmp(cmd,"/playerinfo",true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        new nome[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nome);
        format(infoStr, sizeof(infoStr), "{FFFF00}%s \n{99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ", nome,GetPlayerFPS(playerid),GetPlayerPing(playerid),PlayerInfo[playerid][PlayerRoundKills]);
        ShowPlayerDialog(playerid, DIALOG_PLAYERINFO, DIALOG_STYLE_MSGBOX, "{FF000F}Information:", infoStr, "Refresh", "Close");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == DIALOG_PLAYERINFO)
    {
        if (response == 1)
        {
            new nome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, nome);
            format(infoStr, sizeof(infoStr), "{FFFF00}%s {99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ", nome, GetPlayerFPS(playerid), GetPlayerPing(playerid), PlayerInfo[playerid][PlayerRoundKills]);
            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");
                return 1;
            }
        }
        return 1;
    }
Reply
#4

continua os erros, mais agora tem

Код:
(2701) : warning 202: number of arguments does not match definition
(2702) : error 076: syntax error in the expression, or invalid function call
(2722) : error 076: syntax error in the expression, or invalid function call
(5403) : warning 202: number of arguments does not match definition
(5404) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#5

Jб editei .. tenta ai.

pawn Код:
if(strcmp(cmd,"/playerinfo",true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        new nome[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nome);
        format(infoStr, sizeof(infoStr), "{FFFF00}%s \n{99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ", nome,GetPlayerFPS(playerid),GetPlayerPing(playerid),PlayerInfo[playerid][PlayerRoundKills]);
        ShowPlayerDialog(playerid, DIALOG_PLAYERINFO, DIALOG_STYLE_MSGBOX, "{FF000F}Information:", infoStr, "Refresh", "Close");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == DIALOG_PLAYERINFO)
    {
        if (response == 1)
        {
            new nome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, nome);
            format(infoStr, sizeof(infoStr), "{FFFF00}%s {99FF00}FPS:%d {2F5B27}Ping:%d {7D26CD}Kills:%d ", nome, GetPlayerFPS(playerid), GetPlayerPing(playerid), PlayerInfo[playerid][PlayerRoundKills]);
            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");
                return 1;
            }
        }
        return 1;
    }
Reply
#6

Код:
(2696) : warning 202: number of arguments does not match definition
(5387) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#7

Fala as Linhas ne ?
Reply
#8

Ambos os erros em

PHP код:
GetPlayerName(playeridnome); 
que foram adicionados
Reply
#9

pawn Код:
new nome[24];
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
Reply
#10

ae valeu pra quem ajudou =]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)