SA-MP Forums Archive
[AJUDA] Erro no OnPlayerRequestClass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Erro no OnPlayerRequestClass (/showthread.php?tid=144465)



[AJUDA] Erro no OnPlayerRequestClass - pedrorafaeln - 27.04.2010

seguinte, meu gm funciona bem, mas tem um problema na hora do player escolher a skin, o que acontece й que a id do CJ nгo estб lб, mas mesmo assim aparece, mas apenas para o primeiro jogador a entrar no servidor, depois disso a primeira skin definida e as outras aparecem normal

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

AddPlayerClass(23,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(250,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(29,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(170,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(188,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(60,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(211,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);

	SetPlayerPos(playerid, 1661.7025,-1629.5635,87.3125);
	SetPlayerCameraPos(playerid, 1656.8469,-1635.8916,88.0452);
	SetPlayerCameraLookAt(playerid, 1661.7025,-1629.5635,87.3125);
	SetPlayerFacingAngle(playerid,3047.57);
	SetPlayerScore(playerid, 0);
	return 1;

}
ps: jб rodei o servidor sem nenhum FS, mas o erro persistiu


Re: [AJUDA] Erro no OnPlayerRequestClass - SuB_ZeRo0_ - 27.04.2010

pawn Код:
AddPlayerClass(23,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(250,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(29,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(170,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(188,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(60,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
AddPlayerClass(211,1958.6493,1343.1532,15.3746,269.1425,0,0,0,0,0,0);
Tenta colocar isso em OnGameModeInit


Re: [AJUDA] Erro no OnPlayerRequestClass - pedrorafaeln - 27.04.2010

cara, eu sabia que a soluзгo era fбcil HUSAHUSAHUASHUSAHUASHU ;/
SuB_ZeRo0_ eu te amo, tu resolveu uma baita chatisse do meu server, muito obrigado mesmo.