Class selection bug? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Class selection bug? (
/showthread.php?tid=184640)
Class selection bug? [ Solved ] -
Cameltoe - 21.10.2010
Setting up different classes, ends up bugging the script?
Class before last class:
![](http://i51.tinypic.com/rbmm8h.png)
- Looks pretty natural.
Last Class:
- Uses the last skin, why?
First Class:
- Yet again, this looks pretty natural.
Solution:
Quote:
Originally Posted by Jeffry
I guess you should not use the return 0; there. Try to use return 1;
Might help.
|
Re: Class selection bug? -
willsuckformoney - 21.10.2010
AddPlayerClassEx maybe fucked up I guess, but then again I never used AddPlayerClassEx(....).
Re: Class selection bug? -
Cameltoe - 21.10.2010
Quote:
Originally Posted by willsuckformoney
AddPlayerClassEx maybe fucked up I guess, but then again I never used AddPlayerClassEx(....).
|
No changes.. guess i have to try on from start, though if anyone has an explanation for me, please.. iv'e come across this way to many times now.
Re: Class selection bug? -
Steven82 - 21.10.2010
hm..............never experienced this before :O
Re: Class selection bug? -
Cameltoe - 21.10.2010
Quote:
Originally Posted by Steven82
hm..............never experienced this before :O
|
Iv'e came over this around 3 times, every time iv'e just rewrote the OnPlayerRequestClass, OnPlayerRequestSpawn && related functions. but now i want an strict answer why this occurs?
Re: Class selection bug? -
Badger(new) - 21.10.2010
Hm. Is AddPlayerClassEx the only thing that changes their skin while they are in class selection?
Re: Class selection bug? -
Cameltoe - 21.10.2010
Quote:
Originally Posted by Badger(new)
Hm. Is AddPlayerClassEx the only thing that changes their skin while they are in class selection?
|
I'll Post my OnPlayerRequestClass ..
Re: Class selection bug? -
Jeffry - 21.10.2010
I guess you should not use the
return 0; there. Try to use
return 1;
Might help.
Re: Class selection bug? -
Cameltoe - 21.10.2010
Quote:
Originally Posted by Jeffry
I guess you should not use the return 0; there. Try to use return 1;
Might help.
|
Can't see why that solved it.. some question's aren't men't to be answered. thanks !
Re: Class selection bug? -
Jeffry - 21.10.2010
Cause
return 0; makes the code for the player stopping. And when you
return 0; there, the code of setting the players skin ( SA:MP defined) will also be ignored. Thats why you have to use
return 1; Then just the current callback will be stopped. Thats my knowledge.
But nice that it works.