Bug in OnPlayerRequestClass(playerid, classid)!
#1

I saw some things that changed these past versions of samp.
One was the callback OnPlayerRequestClass (playerid, classid).


The function GetPlayerSkin(playerid) ever returns ID 0. Why? In other versions this is not happening!!!
Any help
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{

   GetPlayerSkin(playerid);
   return 1;
}
Reply
#2

If they are requesting to spawn then they usually don't have a skin set. ClassID is the skin they are attempting to spawn with.
Reply
#3

Quote:
Originally Posted by Abagail
Посмотреть сообщение
If they are requesting to spawn then they usually don't have a skin set. ClassID is the skin they are attempting to spawn with.
Right, but in my old RP server(samp 0.3d) my skin shop all players inside the shop can see the skin selected, because I used this following code:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{

   SetPlayerSkin(playerid,GetPlayerSkin(playerid));
   return 1;
}
The code above show and set the skin from current ClassID, but in 0.3z the Skin ID return 0(CJ Skin).
Reply
#4

That works perfectly, check your code.
Reply
#5

Unless you use the F4 character selection for your skin menu, you're using the wrong methods.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)