Quote:
Originally Posted by Domenic_Corleone
Yes , It compiled without error Thank you so much Shinja.
But where should I re-add. these two functions ?
pawn Код:
SetupPlayerForClassSelection(playerid); forward SetupPlayerForClassSelection(playerid);
In the script which I just edited
pawn Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerFacingAngle(playerid,0.0); switch(classid) { case 0 .. 14: { gTeam[playerid] = 0; } case 15 .. 20: { gTeam[playerid] = 1; } case 21 .. 27: { gTeam[playerid] = 2; } case 28 .. 31: { gTeam[playerid] = 3; } case 32 .. 35: { gTeam[playerid] = 4; } case 36 .. 41: { gTeam[playerid] = 5; } case 42 .. 50: { gTeam[playerid] = 6; } case 51 .. 56: { gTeam[playerid] = 7; } } return 1; }
|
Actually this code is same as the one with SetupPlayerForClassSelection
SetPlayerForClassSelection calls this part
PHP код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerFacingAngle(playerid,0.0);
and you already put this in OnPlayerRequestClass, so you don't need this function anymore, remove it and compile