expected token: ")", but found "{"
#1

This is my error:
Код:
D:\GameMode\filterscripts\jobs.pwn(1073) : error 001: expected token: ")", but found "{"
And this is my code:
Код:
Line 1073:if(IsPlayerNearObject(playerid, Drvos[0], 6.0){if(ZdravoDrvos[0] == 1){if(Sece[playerid] == 1){SendClientMessage(playerid, -1, "{00FF00}INFO:{FFFFFF}Vekje secete :D");}else{
Line 1074:SetTimerEx("SeceDrvo1", 10000, false, "i", playerid), TogglePlayerControllable(playerid,0), Sece[playerid] = 1, SendClientMessage(playerid, -1, "{00FF00}INFO:{FFFFFF}Zapocnavte so secenje na drvo");}}}
Reply
#2

Lol fixed http://prntscr.com/5sqwd3
Sorry for spam
Reply
#3

the problem is with this -
pawn Код:
if(IsPlayerNearObject(playerid, Drvos[0], 6.0)
a ) is missing there
so it would be -
Quote:

if(IsPlayerNearObject(playerid, Drvos[0], 6.0))
Reply
#4

pawn Код:
if(IsPlayerNearObject(playerid, Drvos[0], 6.0)) // error add one ")"
{
    if(ZdravoDrvos[0] == 1)
    {
        if(Sece[playerid] == 1)
        {
            SendClientMessage(playerid, -1, "{00FF00}INFO:{FFFFFF}Vekje secete :D");
        }
        else
        {
            SetTimerEx("SeceDrvo1", 10000, false, "i", playerid), TogglePlayerControllable(playerid,0), Sece[playerid] = 1, SendClientMessage(playerid, -1, "{00FF00}INFO:{FFFFFF}Zapocnavte so secenje na drvo");
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)