well, I am trying to change one little thing in one plugin... (attached)
(this plugin is for The Specialists mod)
there are these lines: (I think you have to focus only at them)
Quote:
if(save == 1 || equal(save1, "1")) {
get_cvar_string("rp_carsfile",szFilename,63)
if (!file_exists(szFilename)) return PLUGIN_HANDLED
new message[64]
format(message, 63, "amx_makecar %s %i %i %i 0", itemname, origin[0], origin[1], origin[2])
write_file(szFilename,message,-1)
}
|
and I would like to change it for something like this: (I tried and it didn't work properly)
Quote:
if(save == 1 || equal(save1, "1")) {
get_cvar_string("rp_carsfile",szFilename,63)
if (!file_exists(szFilename)) return PLUGIN_HANDLED
new message[64]
format(message, 63, "amx_makecar car_viper %i %i %i %i", origin[0], origin[1], origin[2], angles[0])
write_file(szFilename,message,-1)
}
|
Well, when I put this second code, it doesn't put in the fourth "%i" the value of the angle...
I just want to know how to "%i" gets the right angle value..
please help me... =) I spend all the night with it, and I didn't get it working