SA-MP Forums Archive
Weird 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: Weird error. (/showthread.php?tid=87422)



Weird error. - Devine - 20.07.2009

I get this error:
C:\Users\Owner\Desktop\New Folder\gamemodes\AllianceRP2.pwn(13016) : error 029: invalid expression, assumed zero

When the line is just:
pawn Код:
{
Any idea on how to fix it?


Re: Weird error. - Grim_ - 20.07.2009

Show the line above and after.


Re: Weird error. - Devine - 20.07.2009

Above:

pawn Код:
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4
After:
pawn Код:
if (GetPlayerState(playerid) == 2)



Re: Weird error. - Correlli - 20.07.2009

Change:
pawn Код:
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4
to:
pawn Код:
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)



Re: Weird error. - Grim_ - 20.07.2009

You forgot a ) at the end of the line above.

EDIT: Damn you don


Re: Weird error. - Devine - 20.07.2009

That's what happens when you try and script at night.