Raised This Month: $ Target: $400
 0% 

Dont see the error.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strizerdragon
Junior Member
Join Date: Apr 2005
Old 04-16-2005 , 16:49   Dont see the error.
Reply With Quote #1

I have a prob , the code will compile but if i use it ingame it shuts the game off .
Can you guys see a error ?




Code:
#include <amxmodx> #include <fun> #include <amxmisc>   #include <cstrike> #include <engine> #include <amxmod>   public plugin_init() {     register_clcmd("ascend_x","spawn_sprite")     register_plugin("ascend_x","1.0 beta","Strizer")           return PLUGIN_CONTINUE }   new theSprite;    public plugin_precache(){    theSprite = precache_model("sprites/haha.spr"); } public spawn_sprite(id){          new spriteorigin[3];    get_user_origin(id,spriteorigin);    set_view(id, CAMERA_3RDPERSON)      message_begin(MSG_BROADCAST,SVC_TEMPENTITY);    write_byte(500);    write_coord(spriteorigin[0]);        write_coord(spriteorigin[1]);    write_coord(spriteorigin[2]);    write_short(theSprite);        write_byte(20);          write_byte(200);    set_view(id, CAMERA_NONE)    message_end(); }
strizerdragon is offline
Send a message via MSN to strizerdragon Send a message via Yahoo to strizerdragon
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-16-2005 , 16:52  
Reply With Quote #2

First off, you should remove <amxmod> from your includes.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
strizerdragon
Junior Member
Join Date: Apr 2005
Old 04-16-2005 , 17:06  
Reply With Quote #3

I did what you said , but it shuts down the game still . Its said as a error :CL_ParseTEnt: bad type . i hope you guys know what it meens.

thx

[EDIT]

Im going to sleep now.
strizerdragon is offline
Send a message via MSN to strizerdragon Send a message via Yahoo to strizerdragon
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-16-2005 , 17:09  
Reply With Quote #4

My post wasn't supposed to be a solution to the problem..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-16-2005 , 17:31  
Reply With Quote #5

The first byte sent with SVC_TEMPENTITY is the type of temp entity, then all of the other arguments and parameters that go with it. The first byte you send is 500, and there is no temp entity with an ID of 500.

I'm assuming you want to display a sprite, so change the 500 to a 17 (the ID of TE_SPRITE) and it should work.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
strizerdragon
Junior Member
Join Date: Apr 2005
Old 04-17-2005 , 04:45  
Reply With Quote #6

thx man . But ive another question : how can i let the sprite play longer?

[EDIT]

Please answer.
strizerdragon is offline
Send a message via MSN to strizerdragon Send a message via Yahoo to strizerdragon
strizerdragon
Junior Member
Join Date: Apr 2005
Old 04-17-2005 , 12:37  
Reply With Quote #7

Can somebody answer the post above this one, please
strizerdragon is offline
Send a message via MSN to strizerdragon Send a message via Yahoo to strizerdragon
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-17-2005 , 19:49  
Reply With Quote #8

You can't, it only plays one cycle. You have to send the message over and over again.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-17-2005 , 20:15  
Reply With Quote #9

Hmm, just curious as to what these lines mean and how you got them..

Code:
// ..    write_byte(500);    write_coord(spriteorigin[0]);        write_coord(spriteorigin[1]);    write_coord(spriteorigin[2]);    write_short(theSprite);        write_byte(20);    write_byte(200);
I know the basic ones like in the file Geesu made.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-18-2005 , 15:15  
Reply With Quote #10

Yay and stuff:
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


Thread Tools
Display Modes

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 09:51.


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