expression has no effect
#1

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 
Reply
#2

all the way up
Reply
#3

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.
Reply
#4

well okay,im afraid if it appears some bugs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)