Format messed up ?[solved]
#1

Solved.
Reply
#2

Nothing is causing the [RGDM] to go front of the text in the code you gave, must be probably some mistakes.
Reply
#3

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);
Reply
#4

....
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)