Raised This Month: $ Target: $400
 0% 

Hours trying, I had to ask for help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TiToTal
Member
Join Date: Feb 2006
Old 03-04-2006 , 05:53   Hours trying, I had to ask for help..
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (carmod.sma - 615 views - 12.3 KB)
TiToTal is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode