Add commas to sscanf params.
#3

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
Here's a suggestion first,
A) if someone does a command, he is connected !
B) if you want to check if something is true and send an error message use it's opposite, so
PHP код:
        if(PlayerInfo[playerid][pAdmin] < 2) return 0// or /return scm(playerid,color,sth);
        
Here's your normal code 
This will generally avoid unnecessary brackets just for 1 error message, and you won't be confused because the if and the error msg are not close to each other.

Now to your problem, https://sampforum.blast.hk/showthread.php?tid=570927 section "Delimiters":
PHP код:
sscanf("1,2,3""p<,>fff"x,y,z); 
will do the trick for you.
Not really, That's what I get when I launch samp-server.exe :

Код:
sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
I've been reading through sscanf's thread I cant find anything related to this.

EDIT: Never mind that's something else, fixed it tho. Thanks!
Reply


Messages In This Thread
Add commas to sscanf params. - by Black Axe - 14.01.2016, 06:59
Re: Add commas to sscanf params. - by PrO.GameR - 14.01.2016, 08:50
Re: Add commas to sscanf params. - by Black Axe - 15.01.2016, 06:27
Re: Add commas to sscanf params. - by PrO.GameR - 15.01.2016, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)