Need help with sprite plugin for TS
Hi, am new to AMX coding, and i need some help with my plugin, i have been working on it all day, and i need to to bring a sprite onto the screen (covering the player) once the player tyeps the command in the console, now my problem is that when i get in game, i type the command in the console and it gives me an error
Code:
L 04/09/2005 - 21:55:39: [AMXX] Native error in "precache_model" on line 20 (file "ssjtransform.sma")Code:
now im going to guess theres alot wrong with my code, i have been looking in this forum for about 2 hours for help and snippets that might help me with my code. can any one correct my code for me? thanks Pvthudson/Sephiroth_nightmare |
Change public spawn_sprite to public plugin_precache, and public myfunction to public spawn_sprite
|
thanks for your help :)
but now that i have replaced them i get 2 errors during compile. here is the code now Code:
the errors i get are these Code:
symbol already defined "plugin_precache"Code:
function header differs from prototypethanks |
Remove
Code:
And replace plugin_precache(id) with plugin_precache(). |
thanks :D it works now.
thanks for all your help. i have one more question tho remeber in team fortress when you saw a concussion granade explode and it had that like push out effect? how would i be able to make that effect play once my sprite has finished playing. so it would be like sprite starts playing sprite finishs playing push out effect start i hope you understand what i mean :) thanks *edit* i also want the player to be frozen whilst this stuff is happening, and once its over the player can move again. Also how can i get a sound to play when the sprite starts, and make it stop when the sprite stops? thanks |
*bump*
cany anyone help me with my above post? :) any help will be greatful thanks |
Push out effect? Is it like a shockwave?
|
To do that, you need Fun With Vectors!
Still want to? |
Quote:
|
Code:
|
| All times are GMT -4. The time now is 09:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.