OnPlayerRequestClass 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)
+--- Thread: OnPlayerRequestClass Bug ? (
/showthread.php?tid=380683)
OnPlayerRequestClass Bug ? -
ShawnMiller1337 - 26.09.2012
Everytime I spawn in my script it does public OnPlayerRequestClass and everytime I die it does the same but I disabled it apparently I guess
Код:
public OnPlayerRequestClass(playerid, classid)
{
return 0;
}
What can I do to resolve this ?
Re: OnPlayerRequestClass Bug ? - Jarnu - 26.09.2012
Well
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
return 0;
}
return 0 = it will not return any value means you will not be spawned
change it to
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
return 1 means it will return a value which will let you move to the next function
Re: OnPlayerRequestClass Bug ? -
ShawnMiller1337 - 26.09.2012
Thank you! Much appreciated gave you some rep for that. My other problem is it kills me when I spawn
Re: OnPlayerRequestClass Bug ? -
ShawnMiller1337 - 26.09.2012
Another problem im having OnPlayerRequestClass seems to come up when I die when I do TogglePlayerSpectating(playerid, 1); Why would it be doing this ?