SA-MP Forums Archive
1 error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 error (/showthread.php?tid=275395)



1 error - jaksimaksi - 09.08.2011

pawn Код:
SetTimerEx("Namosiulymas",15000,false,"ii",id);

pawn Код:
public Namosiulymas(playerid)
{
    PlayerInfo[playerid][Namosiulymas]=0;
    return 1;
}

pawn Код:
syntax error in the expression, or invalid function call



Respuesta: 1 error - RatHack - 09.08.2011

Put the line hwere it gives the error


AW: 1 error - jaksimaksi - 09.08.2011

pawn Код:
PlayerInfo[playerid][Namosiulymas]=0; // here



Re : 1 error - Soumi - 09.08.2011

Try changing one of the
Код:
Namosiulymas
to something else for example:

pawn Код:
SetTimer("Example", 15000, false, "ii", id);


public Example(playerid)
{
    PlayerInfo[playerid][Namosiulymas]=0;
    return 1;
}

//And don't forget to add this at the top of your script

forward Example(playerid);



AW: 1 error - jaksimaksi - 09.08.2011

OMG im so retarded i added wrong variable