what in the world ?
#1

As i said before .. i have started it myself and i just need a bit of help .
here i want to choose the country
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid,111.345,3456.71341,22.6224);
	SetPlayerFacingAngle(playerid, 128.0980);
	SetPlayerInterior(playerid, 0);
	SetPlayerCameraPos(playerid,9.12363,173115.1122,22.6114233);
	SetPlayerCameraLookAt(playerid,1231.954277,1742316.712391,22.6223422);
	
	switch (classid) {
		case 0:
		{

			GameTextForPlayer(playerid, "~g~FRANCE", 5000,3);
      OnPlayerRequestClass2(playerid, classid);
		}
		case 1:
		{
		  GameTextForPlayer(playerid, "~g~BRITISH", 5000,3);
		  OnPlayerRequestClass3(playerid, classid);
		}
		
  }
	return 1;
}
And then .. if my idea is right .. still it didnt work .. this si for France teams
Код:
forward OnPlayerRequestClass2(playerid, classid);
public OnPlayerRequestClass2(playerid, classid){

	switch (classid) {
		case 0:
		{

			GameTextForPlayer(playerid, "~g~French Soldier", 5000,3);

		}
		case 1:
		{
		  GameTextForPlayer(playerid, "~g~French General", 5000,3);
		}

  }
	return 1;
}
And this is for the British
Код:
forward OnPlayerRequestClass3(playerid, classid);
public OnPlayerRequestClass3(playerid, classid){

	switch (classid) {
		case 0:
		{

			GameTextForPlayer(playerid, "~g~British Soldier", 5000,3);

		}
		case 1:
		{
		  GameTextForPlayer(playerid, "~g~British General", 5000,3);
		}

  }
	return 1;
}
so what should i add ..? cuz it didnt work .. i tested it .
Reply
#2

i think it works ... but noone helps
Reply
#3

so is that good ? onplayerrequestclass2 ....
Reply
#4

Quote:
Originally Posted by MrIncredible
so is that good ? onplayerrequestclass2 ....
Stop bumping your post. Wait for someone to reply to it. The first bump was fine, but the second one, is not. You triple posted, review the rules. It may help you in the future.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)