SA-MP Forums Archive
Does anybody has these functions link? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: Does anybody has these functions link? (/showthread.php?tid=159245)



Does anybody has these functions link? - felipex - 12.07.2010

the functions such as %s, %d, cause I've seen em' before but I dont remember, if anybody has it, please post here, I need


Re: Does anybody has these functions link? - IanDaCJ - 12.07.2010

use a string..


Re: Does anybody has these functions link? - lacalau33 - 12.07.2010

Lul wut?

Are you looking for "format" (or "printf")?


Re: Does anybody has these functions link? - felipex - 12.07.2010

lol, I mean it : %s, %d, such as

SendClientMessageToAll(COR_WHITE, "Admin %s has set all health to %d");

cause I saw other "%", such as : %s,%d,%c.. and I dont remember the site which teachs it.


Re: Does anybody has these functions link? - ettans - 12.07.2010

%s - string
%d - decimal
%f - float
%i - integar

Example: format(string,sizeof(string),"%s is %d years old",Name,age);

Is that what you mean?


Re: Does anybody has these functions link? - felipex - 12.07.2010

yes, ty dude.