SA-MP Forums Archive
Where is my class selection? - 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: Where is my class selection? (/showthread.php?tid=95509)



Where is my class selection? - Hiphop - 03.09.2009

Hey,

my class selection is gone, and I can't see what is wrong.

Код:
public OnPlayerRequestClass(playerid, classid)
{
	if(IsPlayerNPC(playerid)) return 1;

	if(gPlayerHasCitySelected[playerid]) {
		ClassSel_SetupCharSelection(playerid, classid);
		return 1;
	} else {
		if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
			TogglePlayerSpectating(playerid,1);
  		TextDrawShowForPlayer(playerid, txtClassSelHelper);
  		gPlayerCitySelection[playerid] = -1;
		}
 	}

	return 0;
}
And yes, I tried to change return 0; to return 1; but that doesn't change anything.

Thanks!



Re: Where is my class selection? - Hiphop - 04.09.2009

Nobody knows how to fix it?