Format messed up ?[solved] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Format messed up ?[solved] (
/showthread.php?tid=396316)
Format messed up ?[solved] -
InfiniTy. - 30.11.2012
Solved.
Re: Format messed up ? -
Alcatraz Gaming - 30.11.2012
Nothing is causing the [RGDM] to go front of the text in the code you gave, must be probably some mistakes.
Re: Format messed up ? -
gtakillerIV - 30.11.2012
pawn Код:
format(string,sizeof(string),"%s Admin %s gave weapon id %d with %d ammo to players in range of %d meters."SERVER_NAME,playeridn,gun,ammo,range);
Should be:
pawn Код:
format(string,sizeof(string),"%s Admin %s gave weapon id %d with %d ammo to players in range of %d meters.", SERVER_NAME,playeridn,gun,ammo,range);
You forgot a comma before the "SERVER_NAME".
And I'm guessing that you don't need that SERVER_NAME.
So it should be:
pawn Код:
format(string,sizeof(string),"%s Admin %s gave weapon id %d with %d ammo to players in range of %d meters.", playeridn,gun,ammo,range);
Re: Format messed up ? -
Laure - 30.11.2012
....
Re: Format messed up ? -
InfiniTy. - 30.11.2012
Quote:
Originally Posted by Vinnie Robardo
Nothing is causing the [RGDM] to go front of the text in the code you gave, must be probably some mistakes.
|
I feel so stupid.. i found the problem after looking at it.. i missed a , in front of server_name. Thanks .
Thanks to all.