SA-MP Forums Archive
what in the world ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: what in the world ? (/showthread.php?tid=133594)



what in the world ? - MrIncredible - 13.03.2010

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 .


Re: what should i add here ?any suggestions ? - MrIncredible - 13.03.2010

i think it works ... but noone helps


Re: what in the world ? - MrIncredible - 13.03.2010

so is that good ? onplayerrequestclass2 ....


Re: what in the world ? - Scenario - 13.03.2010

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.