14.01.2016, 08:50
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
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":
will do the trick for you.
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
Now to your problem, https://sampforum.blast.hk/showthread.php?tid=570927 section "Delimiters":
PHP код:
sscanf("1,2,3", "p<,>fff", x,y,z);