SA-MP Forums Archive
expression has no effect - 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: expression has no effect (/showthread.php?tid=618744)



expression has no effect - Bondz - 09.10.2016

i'm updating the sscanf include on my gamemode,and i get this now

PHP код:
gamemode.pwn(21) : error 010invalid function or declaration
gamemode
.pwn(22) : error 010invalid function or declaration
gamemode
.pwn(23) : error 010invalid function or declaration 
the lines

PHP код:
native sscanf(const data[], const format[], {Float,_}:...); //20
native SSCANF_Init(playersinvalidlen); //21
native SSCANF_Join(playerid, const name[], npc); /22
native SSCANF_Leave
(playerid); //23 
when i remove them, i get error
PHP код:
gamemode.pwn(1340) : warning 215expression has no effect
gamemode
.pwn(2717) : warning 215expression has no effect
gamemode
.pwn(3214) : warning 215expression has no effect 
PHP код:
SSCANF_Init(MAX_PLAYERSINVALID_PLAYER_IDMAX_PLAYER_NAME); //1340
SSCANF_Join(playeridPlayerNamefalse); //2717
SSCANF_Leave(playerid); //3214 



Re: expression has no effect - Bondz - 09.10.2016

all the way up


Re: expression has no effect - Konstantinos - 09.10.2016

The natives (excluding sscanf) are defined in the include and are used inside that as well, don't try to use them in the script.

So remove the natives from lines 20-23 and remove anything related such as the code in lines 1340, 2717, 3214. In other words, use only sscanf (or unformat) function in scripts.


Re: expression has no effect - Bondz - 09.10.2016

well okay,im afraid if it appears some bugs