18.02.2015, 15:06
There's some mistakes with that:
1.
You need to use it above
As "userid" needs to be defined by sscanf too.
2.
"uss[32]" will be "ID", "string" and "string"[size of 32], yet you only added "userid" and "atitle", so you're not using the one in the middle, delete it.
Also, you need to use a string size if you wanted to use the string in the middle.
3. (Not really anything wrong with it, but just saying)
There's no need to use an "else" or the brackets with your sscanf.
1.
You need to use it above
pawn Код:
if (userid == INVALID_PLAYER_ID)
2.
"uss[32]" will be "ID", "string" and "string"[size of 32], yet you only added "userid" and "atitle", so you're not using the one in the middle, delete it.
Also, you need to use a string size if you wanted to use the string in the middle.
3. (Not really anything wrong with it, but just saying)
There's no need to use an "else" or the brackets with your sscanf.