SA-MP Forums Archive
error 029: invalid expression, assumed zero | - 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)
+--- Thread: error 029: invalid expression, assumed zero | (/showthread.php?tid=639828)



error 029: invalid expression, assumed zero | - ziber - 23.08.2017

I have a few problems, and my english is not very good. I apologize if my writing is bad, please help.

Problems:

C:\Users\Oğulcan\Desktop\RolePlay\pawno\include\/nnrpg/Enums.inc(19) : warning 201: redefinition of constant/macro (symbol "MAX_RADIOS")
C:\Users\Oğulcan\Desktop\RolePlay\gamemodes\lsrp.p wn(8937) : error 017: undefined symbol "Actors"
C:\Users\Oğulcan\Desktop\RolePlay\gamemodes\lsrp.p wn(8937) : warning 215: expression has no effect
C:\Users\Oğulcan\Desktop\RolePlay\gamemodes\lsrp.p wn(8937) : error 001: expected token: ";", but found "]"
C:\Users\Oğulcan\Desktop\RolePlay\gamemodes\lsrp.p wn(8937) : error 029: invalid expression, assumed zero
C:\Users\Oğulcan\Desktop\RolePlay\gamemodes\lsrp.p wn(8937) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


-----------------------------------------------------------------------------------------------------------------------------
Line (8937 ):

Код:
CallLocalFunction("AktorEtkilesim", "dds", playerid, actorid, Actors[actorid][actorAd]);
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	new str[500];
    if (PRESSED( KEY_WALK ) && GetActorID(playerid) != -1)  {
	    new actorid = GetActorID(playerid);
	    CallLocalFunction("AktorEtkilesim", "dds", playerid, actorid, Actors[actorid][actorAd]);
	return 1;
}



Re: error 029: invalid expression, assumed zero | - 10MIN - 23.08.2017

Array Actors is not declared anywhere...
Also when you get errors, take a look at Warnings And Errors Wiki Page