Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Learning Sscanf
RandomDude
Huge Clucker
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
#1
28.04.2013, 13:18
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?
Find
Reply
RVRP
Big Clucker
Posts: 92
Threads: 2
Joined: Apr 2013
Reputation:
0
#2
28.04.2013, 13:22
u is the playerid.
Taken from:
https://sampwiki.blast.hk/wiki/Fast_Commands
Find
Reply
RandomDude
Huge Clucker
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
#3
28.04.2013, 13:23
Oh okay emm so the "i" is the interger for amounts... okay thanks.
Find
Reply
RandomDude
Huge Clucker
Posts: 390
Threads: 88
Joined: Jun 2011
Reputation:
0
#4
28.04.2013, 13:53
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
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help