SA-MP Forums Archive
[Ajuda] com erro expected token: "]", but found "new" - 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] com erro expected token: "]", but found "new" (/showthread.php?tid=623033)



com erro expected token: "]", but found "new" - henriqueTL - 29.11.2016

Bom primeiro bom dia boa noite boa tarde alquem poderia me ajudar com esse erro:expected token: "]", but found "new"
PHP код:
new iFake[MAX_PLAYERS];
new 
Float:xPos,Float:yPos,Float:zPos;
    
GetPlayerPos(playerid,xPos,yPos,zPos);
    if(
gPlayerUsingLoopingAnim[playerid])
    {
        
gPlayerUsingLoopingAnim[playerid] = 0;
        
TextDrawHideForPlayer(playerid,txtAnimHelper);
    }
    if(
IsPlayerInRangeOfPoint(killerid,25.0,xPos,yPos,zPos))
    {
        if(
GetTickCount() - iFake[playerid] <= 2000)
        {
            ++
iKills[playerid];
            if(
iKills[playerid] > 3)
            {
                
iKills[playerid] = 0;
                
CallLocalFunction("OnPlayerFakeKill","i",playerid);
            }
        }
    }
    
HidePlayerArrow(playerid);
    
iFake[playerid] = GetTickCount();
    print(
"all2");
    return 
1;




Re: com erro expected token: "]", but found "new" - n0minal - 29.11.2016

Linha do erro... cуdigos da linha do erro...?


Re: com erro expected token: "]", but found "new" - henriqueTL - 29.11.2016

PHP код:
new iFake[MAX_PLAYERS]; 



Re: com erro expected token: "]", but found "new" - n0minal - 29.11.2016

Linha anterior a isso...


Re: com erro expected token: "]", but found "new" - henriqueTL - 29.11.2016

Resolvido ja


Re: com erro expected token: "]", but found "new" - klap - 30.11.2016

hueeeee