Learning Sscanf
#1

pawn Код:
if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
I was learning sscanf is it ment to be "u" or "ui" because is the playerid an interger?
Reply
#2

u is the playerid.



Taken from: https://sampwiki.blast.hk/wiki/Fast_Commands
Reply
#3

Oh okay emm so the "i" is the interger for amounts... okay thanks.
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Hmm, that page should really be updated as it doesn't have string lengths.
Now thats what I'm stuck on the lengths argh yeah someone should update it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)