why this plugin make me crash ?
PHP Code:
|
Re: why this plugin make me crash ?
which game and are you sure your gamedata files are up to date ?
|
Re: why this plugin make me crash ?
You need to add "materials/" in front of "sprites/" for your g_ModelIndex precache. Additionally (although this won't crash at first) things should be precached OnMapStart instead of OnPluginStart, because the precaches are cleared each time the map changes or reloads.
Also, you're adding an integer onto a float, which can never ever be a good thing, since the two are entirely different (as far as the plugin knows without conversion). Change f_PosClient[2] += 5; to f_PosClient[2] += 5.0; Speaking of f_PosClient, there's no need to make it global if you're only going to use it in Beam(). Move new Float:f_PosClient[3]; to the top of Beam(). gosh dangit people keep replying just before i do today |
Re: why this plugin make me crash ?
Try updating your soul?
|
Re: why this plugin make me crash ?
Quote:
|
Re: why this plugin make me crash ?
Make sure you have a proper check of client index.. make sure it Bigger than zero and in game.. thought it only spit lot of error without crashin but its a good practice.
|
Re: why this plugin make me crash ?
Typically, events will never have info like userid missing, and the user in question should always be valid. If you still want to check, just "if (!client) return;" should suffice, because if a userid is specified, but the userid is no longer in use, then GetClientOfUserId will simply return zero.
|
Re: why this plugin make me crash ?
I think you need to precache models in OnMapStart rather than OnPluginStart.
|
Re: why this plugin make me crash ?
Quote:
So it's only one use trip :cry: |
Re: why this plugin make me crash ?
Quote:
|
| All times are GMT -4. The time now is 12:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.