error 004: function "OnPlayerRequestClass" is not implemented //1erro
error 017: undefined symbol "playerid"
error 017: undefined symbol "classid"// 1 errro
public OnPlayerRequestClass( playerid, classid)//1erro
{
SetPlayerInterior(playerid,14);
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)//1erro
{
case 0, 1, 2, 3, 4, 5, 6, 7:
{
GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassTruckDriver;
}
case 8, 9:
{
GameTextForPlayer(playerid, TXT_ClassBusDriver, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassBusDriver;
}
case 10:
{
GameTextForPlayer(playerid, TXT_ClassPilot, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassPilot;
}
case 11, 12, 13:
{
GameTextForPlayer(playerid, TXT_ClassPolice, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassPolice;
}
case 14, 15, 16:
{
GameTextForPlayer(playerid, TXT_ClassMafia, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassMafia;
}
case 17, 18:
{
GameTextForPlayer(playerid, TXT_ClassCourier, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassCourier;
}
case 19:
{
GameTextForPlayer(playerid, TXT_ClassAssistance, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassAssistance;
}
case 20, 21, 22:
{
GameTextForPlayer(playerid, TXT_ClassRoadWorker, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassRoadWorker;
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)//1erro
tenta assim tirei o espaзo |
function "OnGameModeExit" is not implemented
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerInterior(playerid,14);
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, 1, 2, 3, 4, 5, 6, 7:
{
GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassTruckDriver;
}
case 8, 9:
{
GameTextForPlayer(playerid, TXT_ClassBusDriver, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassBusDriver;
}
case 10:
{
GameTextForPlayer(playerid, TXT_ClassPilot, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassPilot;
}
case 11, 12, 13:
{
GameTextForPlayer(playerid, TXT_ClassPolice, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassPolice;
}
case 14, 15, 16:
{
GameTextForPlayer(playerid, TXT_ClassMafia, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassMafia;
}
case 17, 18:
{
GameTextForPlayer(playerid, TXT_ClassCourier, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassCourier;
}
case 19:
{
GameTextForPlayer(playerid, TXT_ClassAssistance, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassAssistance;
}
case 20, 21, 22:
{
GameTextForPlayer(playerid, TXT_ClassRoadWorker, 3000, 4);
APlayerData[playerid][PlayerClass] = ClassRoadWorker;
}
}
return 1;
}
Absoluta olha
pawn Код:
|
Funcao1
{
Funcao2
{
Funcao3
{
Funcao3Acabada
}
}
return true;
}
Funcao1
{
Funcao2
{
Funcao3
{
Funcao3Acabada
}
}
return true;
}
forward OnPlayerRequestClass(playerid, classid);