Jump to content
  • 0

Problema DIALOG


Sprite_RoPlayers

Question

Am si eu urmatoarea problema

Am acest dialog si cand il pun in gm

Nu se mai copiliaza gm-ul

Cand o scot totul este k

Ma poate ajuta cineva?

if(dialogid == DIALOG_AIRTRANSPORTER)
	{
			switch(listitem) {
				case 0: {
					Plane[playerid] = CreateVehicle(519, 1477.2561, 1239.0946, 12.4890, -0.5400, -1, -1, 100);
					SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
					PlaneCP[playerid] = 1;
					PutPlayerInVehicle(playerid, Plane[playerid], 0);
					Working[playerid] = 1;
					SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
				}
				case 1: {
					Plane[playerid] = CreateVehicle(553, 1477.3422, 1262.9681, 13.6237, 0.0000, -1, -1, 100);
					SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
					PlaneCP[playerid] = 1;
					PutPlayerInVehicle(playerid, Plane[playerid], 0);
					Working[playerid] = 1;
					SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");					
				}
				case 2: {
					Plane[playerid] = CreateVehicle(577, 1477.4810, 1233.7422, 12.2692, -0.4200, -1, -1, 100);
					SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
					PlaneCP[playerid] = 1;
					PutPlayerInVehicle(playerid, Plane[playerid], 0);
					Working[playerid] = 1;
					SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");					
				}
			}
		}
	}		

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Poti sa ne arati si erorile si liniile? Ce cred eu ca e gresit este cum ai deschis / inchis prima acolada, si ai pus si o acolada in plus cand le-ai inchis

 

EDIT: Poftim, aveai o acolada inchisa aiurea, si una pozitionata prost.

 

	if(dialogid == DIALOG_AIRTRANSPORTER)
	{
		switch(listitem) {
			case 0: {
				Plane[playerid] = CreateVehicle(519, 1477.2561, 1239.0946, 12.4890, -0.5400, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
			case 1: {
				Plane[playerid] = CreateVehicle(553, 1477.3422, 1262.9681, 13.6237, 0.0000, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
			case 2: {
				Plane[playerid] = CreateVehicle(577, 1477.4810, 1233.7422, 12.2692, -0.4200, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
		}
	}

 

Edited by Fabyx15

Cea mai mare realizare:

public OnPlayerConnect(playerid)
{
	Kick(playerid);
}

 

Link to comment
Share on other sites

  • 0
On 12/30/2018 at 12:47 PM, Fabyx15 said:

Poti sa ne arati si erorile si liniile? Ce cred eu ca e gresit este cum ai deschis / inchis prima acolada, si ai pus si o acolada in plus cand le-ai inchis

 

EDIT: Poftim, aveai o acolada inchisa aiurea, si una pozitionata prost.

 


	if(dialogid == DIALOG_AIRTRANSPORTER)
	{
		switch(listitem) {
			case 0: {
				Plane[playerid] = CreateVehicle(519, 1477.2561, 1239.0946, 12.4890, -0.5400, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
			case 1: {
				Plane[playerid] = CreateVehicle(553, 1477.3422, 1262.9681, 13.6237, 0.0000, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
			case 2: {
				Plane[playerid] = CreateVehicle(577, 1477.4810, 1233.7422, 12.2692, -0.4200, -1, -1, 100);
				SetPlayerRaceCheckpoint(playerid, 5, 1477.724731, 1443.039672, 13.318985, 1477.724731, 1443.039672, 13.318985, 20.000000);
				PlaneCP[playerid] = 1;
				PutPlayerInVehicle(playerid, Plane[playerid], 0);
				Working[playerid] = 1;
				SCM(playerid, COLOR_CYAN, "Urmareste cercurile (checkpoint-urile) din aer pentru a transporta pasagerii si a fi recompensat.");
			}
		}
	}

 

Incearca asta, ca are dreptate!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.