undefined symbol "SetupPlayerForClassSelection" - 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: undefined symbol "SetupPlayerForClassSelection" (
/showthread.php?tid=448503)
undefined symbol "SetupPlayerForClassSelection" -
Nines - 04.07.2013
I'm trying to make registered users spawn without having to go into skin selection nd non registed to go into skin selection but i get 1 error which is the one in the title.
CODE:
Код:
new IsRegistered[MAX_PLAYERS];
Код:
public OnPlayerRequestClass(playerid)
{
if(IsRegistered[playerid] == 1)
{
SpawnPlayer(playerid);
}
else
{
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,1766.1969,-1945.0790,13.5643);
SetPlayerCameraPos(playerid,1768.5718,-1942.9174,13.5615);
SetPlayerFacingAngle(playerid,312.7264);
SetPlayerCameraLookAt(playerid,1766.1969,-1945.0790,13.5643);
}
return 1;
}
Re: undefined symbol "SetupPlayerForClassSelection" -
SsHady - 04.07.2013
Try this
pawn Код:
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,1766.1969,-1945.0790,13.5643);
SetPlayerCameraPos(playerid,1768.5718,-1942.9174,13.5615);
SetPlayerFacingAngle(playerid,312.7264);
SetPlayerCameraLookAt(playerid,1766.1969,-1945.0790,13.5643);
}
public OnPlayerRequestClass(playerid, classid)
{
if(IsRegistered[playerid] == 1)
{
SpawnPlayer(playerid);
}
else
{
SetupPlayerForClassSelection(playerid);
}
return 1;
}