OnPlayerRequestClass Bug ?
#1

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

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
Reply
#3

Thank you! Much appreciated gave you some rep for that. My other problem is it kills me when I spawn
Reply
#4

Another problem im having OnPlayerRequestClass seems to come up when I die when I do TogglePlayerSpectating(playerid, 1); Why would it be doing this ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)