Fatal Error
Im getting a fatal error and my server crashes saying "sv_ model not precached" . It only happens as soon as i switch to my knife . Heres my code , i cant find the problem , it still crashes :cry: i think it has to do with the way i set the model , but i dnt know why.
Code:
|
Re: Fatal Error
The reason your getting an error is that the proper implementation of pev_viewmodel requires ALLOC_STRING since it uses an integer believe it or not :)
set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/v_samari.mdl")) or you can do: set_pev(id, pev_viewmodel2, "models/v_samari.mdl") |
Re: Fatal Error
:up: OMG it worked perfectly. I tried eveyrthing . My only problem now is reseting the samari every round . thanks ++karma
EDIT : any idea why i get these run time errors now ?:cry: Also i dont see any lightning . The +damage works though and so does the smoke and model . Code:
|
Re: Fatal Error
It's victim, not victom.
By "samari" do you mean "samurai"? Wich line is 117 then? |
Re: Fatal Error
117 is where it says , Ahealth = pev(AttackerID,pev_health)
son of a bitch now i have to rename my sma :cry: |
Re: Fatal Error
make sure that the attacker is connected
and btw change: Code:
|
Re: Fatal Error
thanks Peanut :) But as far as making sure the user is connected, the user was me in my test server . so i know i was conencted. any ideas?
|
Re: Fatal Error
|
Re: Fatal Error
Code:
Test this plz |
Re: Fatal Error
Ok i did some testing on that function you did (thank you :wink: )
and it works to some degree. 1. You got the users health to early , before the extra damage was done , so there was to much health being givin out . and for some reason it wasnt doign the +55 damage. 2. no run time errors 3. no lightning :cry: Stupko @ like i said that doesnt matter im in my test server alone with a bot testing it . Im alive and im connected . |
| All times are GMT -4. The time now is 06:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.