Add commas to sscanf params.
#2

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.
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)