Class selection bug?
#1

Setting up different classes, ends up bugging the script?

Class before last class:

- 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.
Reply
#2

AddPlayerClassEx maybe fucked up I guess, but then again I never used AddPlayerClassEx(....).
Reply
#3

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.
Reply
#4

hm..............never experienced this before :O
Reply
#5

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?
Reply
#6

Hm. Is AddPlayerClassEx the only thing that changes their skin while they are in class selection?
Reply
#7

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 ..
Reply
#8

I guess you should not use the return 0; there. Try to use return 1;

Might help.
Reply
#9

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 !
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)