Posts: 139
Threads: 50
Joined: May 2017
Reputation:
0
What string place holder do I use to save gun id and ammo? %s, %f or what?
Posts: 180
Threads: 22
Joined: Dec 2015
Reputation:
0
Gun "id". Integer and not a string.
Posts: 218
Threads: 50
Joined: Dec 2017
Reputation:
0
%f for float(in decimal)
%s for string(mainly text, but can include numbers too "WITH" text)
%i for integer(negative or positive)
Posts: 1,071
Threads: 24
Joined: Aug 2014
Reputation:
0
They arent called String holders, they are called format specifiers. Integers are numbers (ranging from -2^31 to +2^31 in PAWN). So if you want to deal with integers, you use %i or integer format specifier. String and float would work to but ultimately, you'll have to covert them to int in order to use. You can display an integer as string using format function.