C:\DOCUME~1\Tadej\Desktop\SA-MPS~1\GAMEMO~1\New.pwn(278) : error 017: undefined symbol "SetupPlayerForClassSelection"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 1:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 2:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 3:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 4:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia ~g~Medic", 1000, 3);
}
case 5:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 6:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 7:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 8:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 9:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police ~g~Medic", 1000, 3);
}
}
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 1:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 2:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 3:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia", 1000, 3);
}
case 4:
{
SetPlayerTeam(playerid, TEAM_MAFIA);
GameTextForPlayer(playerid, "~r~Mafia ~g~Medic", 1000, 3);
}
case 5:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 6:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 7:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 8:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
}
case 9:
{
SetPlayerTeam(playerid, TEAM_POLICE);
GameTextForPlayer(playerid, "~b~Police ~g~Medic", 1000, 3);
}
}
return 1;
}
PHP код:
Best of luck. |
SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,-779.5753,506.9202,1371.7422);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid,-784.3370,506.9630,1371.7422);
SetPlayerCameraLookAt(playerid,-784.3370,506.9630,1371.7422);
}
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
SetPlayerInterior(playerid,0);