Jump to content

GTA Multiplayer Romania
Welcome to GTA Multiplayer Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Problema Plate


  • Please log in to reply
3 replies to this topic

#1
RsL

RsL

    Newbie

  • Group:
    Members
  • Posts:
    2
  • Joined:
    18-June 17
  • Reputation:
    0
  • Warns:
  • Time Online: 1h 34m 34s

Descrierea problemei: Am folosit Missing Bracket Finder , deoarece imi da acele 26 de erori , nu imi pot da seama unde este paranteza neinchisa , sau pusa gresit.
Liniile de cod / sursa / script-ul(obligatoriu): 

public OnPlayerEnterCheckpoint(playerid)
{
	new string[128];
	new name[MAX_PLAYER_NAME];
	if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
	{
	    TaxiAccepted[playerid] = 999;
		GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
		TaxiCallTime[playerid] = 0;
		DisablePlayerCheckpoint(playerid);
	}
	else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
	{
	    BusAccepted[playerid] = 999;
		GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
		BusCallTime[playerid] = 0;
		DisablePlayerCheckpoint(playerid);
	}
//=================================[Car Save Function]==========================
public LoadCar()
{
	new arrCoords[30][64];
	new strFromFile2[256];
	new File: file = fopen("masini.cfg", io_read);
	if (file)
	{
		new idx = carsonserver;
		while (idx < sizeof(CarInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, ',');
			CarInfo[idx][cModel] = strval(arrCoords[0]);
			CarInfo[idx][cLocationx] = floatstr(arrCoords[1]);
			CarInfo[idx][cLocationy] = floatstr(arrCoords[2]);
			CarInfo[idx][cLocationz] = floatstr(arrCoords[3]);
			CarInfo[idx][cAngle] = floatstr(arrCoords[4]);
			CarInfo[idx][cColorOne] = strval(arrCoords[5]);
			CarInfo[idx][cColorTwo] = strval(arrCoords[6]);
			strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
			strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);
            strmid(CarInfo[idx][cPlate1], arrCoords[9], 0, strlen(arrCoords[9]), 255);
            strmid(CarInfo[idx][cPlate2], arrCoords[10], 0, strlen(arrCoords[10]), 255);
            strmid(CarInfo[idx][cPlate3], arrCoords[11], 0, strlen(arrCoords[11]), 255);
			//CarInfo[idx][cValue] = strval(arrCoords[9]);
			CarInfo[idx][cOwned] = strval(arrCoords[9]);
			CarInfo[idx][mod1] = strval(arrCoords[10]);
			CarInfo[idx][mod2] = strval(arrCoords[11]);
			CarInfo[idx][mod3] = strval(arrCoords[12]);
			CarInfo[idx][mod4] = strval(arrCoords[13]);
			CarInfo[idx][mod5] = strval(arrCoords[14]);
			CarInfo[idx][mod6] = strval(arrCoords[15]);
			CarInfo[idx][mod7] = strval(arrCoords[16]);
			CarInfo[idx][mod8] = strval(arrCoords[17]);
			CarInfo[idx][mod9] = strval(arrCoords[18]);
			CarInfo[idx][mod10] = strval(arrCoords[19]);
			CarInfo[idx][mod11] = strval(arrCoords[20]);
			CarInfo[idx][mod12] = strval(arrCoords[21]);
			CarInfo[idx][mod13] = strval(arrCoords[22]);
			CarInfo[idx][mod14] = strval(arrCoords[23]);
			CarInfo[idx][mod15] = strval(arrCoords[24]);
			CarInfo[idx][mod16] = strval(arrCoords[25]);
			CarInfo[idx][mod17] = strval(arrCoords[26]);
			CarInfo[idx][paintjob] = strval(arrCoords[27]);
			LoadComponents(idx);
			idx++;
		}
	}
	return 1;
	}

 

 

Ce am incercat sa fac: Sa caut
Alte detalii:Multumesc



#2
RsL

RsL

    Newbie

  • Group:
    Members
  • Posts:
    2
  • Joined:
    18-June 17
  • Reputation:
    0
  • Warns:
  • Time Online: 1h 34m 34s

  Up!



#3
Krokodilo

Krokodilo

    Advanced member

  • Group:
    Members
  • Posts:
    135
  • Joined:
    06-July 16
  • Reputation:
    1
  • Warns:
    0
  • Time Online: 2d 5h 35m 25s

Please Login HERE or Register HERE to see this link!

, ai incercat?


giphy.gif

giphy.gif

~ Since here from 395 days ago ~


#4
Veck

Veck

    Advanced member

  • Group:
    Members
  • Posts:
    240
  • Joined:
    06-July 16
  • Reputation:
    17
  • Warns:
    0
  • Time Online: 6d 18h 2m 23s

Ai uitat sa pui o paranteza de inchidere a publicului OnPlayerEnterCheckpoint(playerid), iar la public LoadCar() o paranteza tot la inchiderea publicului a fost pusa mai departe decat unde trebuia(un TAB in plus).

 

Rezolvare: 

Please Login HERE or Register HERE to see this link!