Jump to content

Question

Posted

Problema intalnita (descriere): Salut . Am facut un sistem de carnet pentru tiruri dar cand dau /examen si ma urc intr-un tir de la DMV il pot conduce 
Ero(area / rile) / warning-(ul / urile): - 
Liniile de cod / sursa / script-ul(obligatoriu): 

    if(newstate == PLAYER_STATE_DRIVER)
    {
		for(new h=0; h<5; h++)
		{
			if(IsPlayerInVehicle(playerid, Truckcar[h]))
			{
  				if(PlayerInfo[playerid][pTruckLicense] == 0)
  				{
        			if(TakingTruckLicense[playerid] == true)
        			{
        				SetPlayerCheckpoint(playerid, 2050.4858,-1929.8646,13.2555, 3.0);
	        			Truckcp[playerid] = 1;
	    			    TakingTruckLicense[playerid] = false;
	    			    SCM(playerid, COLOR_GOLD, "Urmeaza checkpointurile.");
	    			    SCM(playerid, COLOR_WHITE, "Ai iesit din masina si s-a respawnat .");
					}
					else
					{
					    RemovePlayerFromVehicle(playerid);
					    SCM(playerid, COLOR_LIGHTRED, "Nu ai luat testul .");
					}
				}
				else
				{
    				RemovePlayerFromVehicle(playerid);
				    SCM(playerid, COLOR_LIGHTRED, "Ai deja permis de conducere");
				}
            }
        }
    }


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da

6 answers to this question

Recommended Posts

  • 0
Posted
Acum 5 minute, kiLLers10 a spus:

Problema intalnita (descriere): Salut . Am facut un sistem de carnet pentru tiruri dar cand dau /examen si ma urc intr-un tir de la DMV il pot conduce 
Ero(area / rile) / warning-(ul / urile): - 
Liniile de cod / sursa / script-ul(obligatoriu): 


    if(newstate == PLAYER_STATE_DRIVER)
    {
		for(new h=0; h<5; h++)
		{
			if(IsPlayerInVehicle(playerid, Truckcar[h]))
			{
  				if(PlayerInfo[playerid][pTruckLicense] == 0)
  				{
        			if(TakingTruckLicense[playerid] == true)
        			{
        				SetPlayerCheckpoint(playerid, 2050.4858,-1929.8646,13.2555, 3.0);
	        			Truckcp[playerid] = 1;
	    			    TakingTruckLicense[playerid] = false;
	    			    SCM(playerid, COLOR_GOLD, "Urmeaza checkpointurile.");
	    			    SCM(playerid, COLOR_WHITE, "Ai iesit din masina si s-a respawnat .");
					}
					else
					{
					    RemovePlayerFromVehicle(playerid);
					    SCM(playerid, COLOR_LIGHTRED, "Nu ai luat testul .");
					}
				}
				else
				{
    				RemovePlayerFromVehicle(playerid);
				    SCM(playerid, COLOR_LIGHTRED, "Ai deja permis de conducere");
				}
            }
        }
    }


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da

Ok , si care e problema atunci?

  • 0
  • 0
  • 0
Posted (edited)

am rezolvat . era o problema de la masini . eu am definit DMVcar[6]; si la toate publicurile erau trecute 5 masini . Mersi Widualk oricum de ajutor . :D

Edited by kiLLers10
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.