SA-MP Forums Archive
[Ajuda] error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 035: argument type mismatch (argument 2) (/showthread.php?tid=515965)



error 035: argument type mismatch (argument 2) - AndersonAq - 28.05.2014

Linha:

OrgSALL(0xAFAFAFAA, stringorg);

Public OrgSALL:

PHP код:
forward OrgSALL(playeridcolor,const string[]);
public 
OrgSALL(playeridcolor,const string[])
{
    for(new 
0MAX_PLAYERSi++)
    {
    if(
Ainf[playerid][PlayerOrg] >= AZ)
    
SCM(i0xFFFFFFFFstring);
    }
    return 
1;

O que pode ser?


Re: error 035: argument type mismatch (argument 2) - PT - 28.05.2014

pawn Код:
stock OrgSALL(playerid, color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(Ainf[i][PlayerOrg] >= AZ)
            SendClientMessage(i, 0xFFFFFFFF, string);
    return 1;
}
pode ser funcao nao precisa ser callback.