SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

Reply
 
Thread Tools Display Modes
Old 17/05/2012, 06:25 PM   #1
RuCy
Little Clucker
 
Join Date: Nov 2010
Location: Iasi,Romania
Posts: 16
Reputation: 0
Exclamation Bug Masini

Salut deci am o problema la care vas ruga sa ma ajutati daca stiti cum .
Deci miam trecut si eu serverul pe 0.3e client si mam trezit ca daca imi creez o masina se creeaza dar nu se salveaza.La restart Dispare....Am observat ca nu se mai blocheaza daca folosesc comanda /v lock1.
Daca cineva sa confruntat cu problema si a aflat cum sa scape de ea va rog sa ma ajutati multumesc.
RuCy is offline   Reply With Quote
Old 17/05/2012, 07:35 PM   #2
Babica
Huge Clucker
 
Babica's Avatar
 
Join Date: Oct 2010
Location: Bucharest
Posts: 254
Reputation: 12
Default Re: Bug Masini

doar atat? dane si noua comenzile sa vedem ce ai in gamemode,dane callbackurile loadcar ,oncarupdate[sau vezi ca poate nu ai oncarupdate si e pus la onplayerupdate], comanda /v din gamemode , variabilele [ enum pinfo ],cars.cfg si unde ai in gamemode AddStaticVehicleEx(CarInfo...........).
__________________
Babica is offline   Reply With Quote
Old 17/05/2012, 08:37 PM   #3
RuCy
Little Clucker
 
Join Date: Nov 2010
Location: Iasi,Romania
Posts: 16
Reputation: 0
Default Re: Bug Masini

Nai inteles.Inainte imi mergeau cand eram pe 0.3d dar acum...nu mai merge.Cumpar masina de la buycar.Se creeaza dau rr si nu mai e salvata....
RuCy is offline   Reply With Quote
Old 17/05/2012, 08:45 PM   #4
RuCy
Little Clucker
 
Join Date: Nov 2010
Location: Iasi,Romania
Posts: 16
Reputation: 0
Default Re: Bug Masini

Code:
enum pInfo
{
	pKey[128],
	pIP[24],
	pLevel,
	pAdmin,
	pDonateRank,
	gPupgrade,
	pConnectTime,
	pReg,
	pSex,
	pAge,
	pOrigin,
	pCK,
	pMuted,
	pMuteTime,
	pExp,
	pCash,
	pAccount,
	pCrimes,
	pKills,
	pDeaths,
	pArrested,
	pWantedDeaths,
	pPhoneBook,
	pLottoNr,
	pFishes,
	pBiggestFish,
	pJob,
	pPayCheck,
	pHeadValue,
	pJailed,
	pJailTime,
	pMats,
	pDrugs,
	pLeader,
	pMember,
	pFMember,
	pRank,
	pChar,
	pContractTime,
	pDetSkill,
	pSexSkill,
	pBoxSkill,
	pLawSkill,
	pMechSkill,
	pJackSkill,
	pCarSkill,
	pNewsSkill,
	pDrugsSkill,
	pCookSkill,
	pFishSkill,
	Float:pHealth,
	Float:pSHealth,
	pInt,
	pLocal,
	pTeam,
	pBlackList,
	pBLTime,
	pPnumber,
	pPhousekey,
	pPhousekey2,
	pPcarkey,
	pPcarkey2,
	pPcarkey3,
	pGangKey,
	pPbiskey,
	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	pCarLic,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pGun1,
	pGun2,
	pGun3,
	pGun4,
	pAmmo1,
	pAmmo2,
	pAmmo3,
	pAmmo4,
	pCarTime,
	pPayDay,
	pPayDayHad,
	pWatch,
	pCrashed,
	pWins,
	pLoses,
	pAlcoholPerk,
	pDrugPerk,
	pMiserPerk,
	pPainPerk,
	pTraderPerk,
	pTut,
	pMissionNr,
	pWarns,
	pFACWarns,
	pADMWarns,
	pVirWorld,
	pFuel,
	pMarried,
	pMarriedTo[128],
	pFishTool,
	pNote1[128],
	pNote1s,
	pNote2[128],
	pNote2s,
	pNote3[128],
	pNote3s,
	pNote4[128],
	pNote4s,
	pNote5[128],
	pNote5s,
	pInvWeapon,
	pInvAmmo,
	pLighter,
	pCigarettes,
	pRequestingBackup,
	pRoadblock,
	pMask,
	pMaskuse,
	pHideNumber,
	pSpeaker,
	pLocked,
	pSala,
	pExamen,
	pWL,
	pDrugTimes,
	pUsedDrugs,
	pWeedSeeds,
	pWeed,
	pCabinetTime,
 	pRobSkill,
	pRob,
	//pSQLID,
};
new PlayerInfo[MAX_PLAYERS][pInfo];



public SaveCars()
{
	new idx;
	new File: file2;
	while (idx < sizeof(CarInfo))
	{
	    new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
		CarInfo[idx][cModel],
		CarInfo[idx][cLocationx],
		CarInfo[idx][cLocationy],
		CarInfo[idx][cLocationz],
		CarInfo[idx][cAngle],
		CarInfo[idx][cColorOne],
		CarInfo[idx][cColorTwo],
		CarInfo[idx][cOwner],
		CarInfo[idx][cDescription],
		CarInfo[idx][cValue],
		CarInfo[idx][cLicense],
		CarInfo[idx][cOwned],
		CarInfo[idx][cLock],
		CarInfo[idx][cComponent0],
		CarInfo[idx][cComponent1],
		CarInfo[idx][cComponent2],
		CarInfo[idx][cComponent3],
		CarInfo[idx][cComponent4],
		CarInfo[idx][cComponent5],
		CarInfo[idx][cComponent6],
		CarInfo[idx][cComponent7],
		CarInfo[idx][cComponent8],
		CarInfo[idx][cComponent9],
		CarInfo[idx][cComponent10],
		CarInfo[idx][cComponent11],
		CarInfo[idx][cComponent12],
		CarInfo[idx][cComponent13],
		CarInfo[idx][cPaintjob]);
		if(idx == PersonalCarID)
		{
			file2 = fopen("cfg/cars.cfg", io_write);
		}
		else
		{
			file2 = fopen("cfg/cars.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}



public LoadCar()
{
	new arrCoords[29][64];
	new strFromFile2[256];
	new File: file = fopen("cfg/cars.cfg", io_read);
	if (file)
	{
		new idx = PersonalCarID;
		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);
			CarInfo[idx][cValue] = strval(arrCoords[9]);
			strmid(CarInfo[idx][cLicense], arrCoords[10], 0, strlen(arrCoords[10]), 255);
			CarInfo[idx][cOwned] = strval(arrCoords[11]);
			CarInfo[idx][cLock] = strval(arrCoords[12]);
			CarInfo[idx][cComponent0] = strval(arrCoords[13]);
		   	CarInfo[idx][cComponent1] = strval(arrCoords[14]);
			CarInfo[idx][cComponent2] = strval(arrCoords[15]);
			CarInfo[idx][cComponent3] = strval(arrCoords[16]);
			CarInfo[idx][cComponent4] = strval(arrCoords[17]);
			CarInfo[idx][cComponent5] = strval(arrCoords[18]);
			CarInfo[idx][cComponent6] = strval(arrCoords[19]);
			CarInfo[idx][cComponent7] = strval(arrCoords[20]);
			CarInfo[idx][cComponent8] = strval(arrCoords[21]);
			CarInfo[idx][cComponent9] = strval(arrCoords[22]);
			CarInfo[idx][cComponent10] = strval(arrCoords[23]);
			CarInfo[idx][cComponent11] = strval(arrCoords[24]);
			CarInfo[idx][cComponent12] = strval(arrCoords[25]);
			CarInfo[idx][cComponent12] = strval(arrCoords[26]);
			CarInfo[idx][cComponent13] = strval(arrCoords[27]);
			CarInfo[idx][cPaintjob] = strval(arrCoords[28]);
			printf("CarInfo: %d Owner:%s LicensePlate %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cLicense]);
			idx++;
		}
	}
	return 1;
}



		if(strcmp(cmd, "/vhelp", true) == 0 || strcmp(cmd, "/v", true) == 0) // By me
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You need to login first ! ");
	            return 1;
	        }
	        new x_nr[64];
	        x_nr = strtok(cmdtext, idx);
	        if(!strlen(x_nr))
			{
			    SendClientMessage(playerid, COLOR_RED,"HINT: /v [name]");
            	SendClientMessage(playerid, COLOR_RED, "|---------------------------------------------------------------------|");
            	SendClientMessage(playerid, COLOR_WHITE, "      park, lock(1-3), sellcarto, color, list , plate       ");
            	SendClientMessage(playerid, COLOR_WHITE, "                 find(1-3), foundit                 ");
            	SendClientMessage(playerid, COLOR_RED, "|------------------------------------Other----------------------------|");
            	SendClientMessage(playerid, COLOR_WHITE, "                 /savecar , paintjob                         ");
            	
            	
				return 1;
			}
			else if(strcmp(x_nr,"lock1",true) == 0)
			{
			    new keycar = PlayerInfo[playerid][pPcarkey];
                if(keycar != 999)
                {
                    new locked[256];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                    	for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,0);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 0;
						OnPropUpdate();
						return 1;
					}
					else if(CarInfo[keycar][cLock] == 0)
					{
					    for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,1);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 1;
						OnPropUpdate();
						return 1;
					}
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  You don't have a vehicle at slot 1");
                    return 1;
                }
			}
			else if(strcmp(x_nr,"lock2",true) == 0)
			{
			    new keycar = PlayerInfo[playerid][pPcarkey2];
                if(keycar != 999)
                {
                    new locked[256];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                    	for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,0);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 0;
						OnPropUpdate();
						return 1;
					}
					else if(CarInfo[keycar][cLock] == 0)
					{
					    for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,1);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 1;
						OnPropUpdate();
						return 1;
					}
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  You don't have a vehicle at slot 2");
                    return 1;
                }
			}
			else if(strcmp(x_nr,"lock3",true) == 0)
			{
			    new keycar = PlayerInfo[playerid][pPcarkey3];
                if(keycar != 999)
                {
                    new locked[256];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[keycar][cLock] == 1)
                    {
                    	for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,0);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 0;
						OnPropUpdate();
						return 1;
					}
					else if(CarInfo[keycar][cLock] == 0)
					{
					    for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(keycar,i,0,1);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[keycar][cLock] = 1;
						OnPropUpdate();
						return 1;
					}
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  You don't have a vehicle at slot 3");
                    return 1;
                }
			}
            return 1;
	    }
    }

SetVehicleNumberPlate(AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],600000),CarInfo[h][cLicense]);
Cred ca e de ajuns...Cine ma poate ajuta va rog sa ma contactati.Comanda /vhelp nu este complecta am pus doar lock .
Nu stiu de ce apare asa /v lock1 dar marog...
RuCy is offline   Reply With Quote
Old 18/05/2012, 01:38 PM   #5
Babica
Huge Clucker
 
Babica's Avatar
 
Join Date: Oct 2010
Location: Bucharest
Posts: 254
Reputation: 12
Default Re: Bug Masini

ia compileaza-ti gamemodul cu noile includeuri de la 0.3e ..vezi daca merge..nustiu ce sa zic,trebuie sa vad gamemodul
__________________
Babica is offline   Reply With Quote
Old 18/05/2012, 02:20 PM   #6
RuCy
Little Clucker
 
Join Date: Nov 2010
Location: Iasi,Romania
Posts: 16
Reputation: 0
Default Re: Bug Masini

Na mers .Si credema ca am incercat tot felu de chestii
RuCy is offline   Reply With Quote
Old 20/05/2012, 10:42 AM   #7
RuCy
Little Clucker
 
Join Date: Nov 2010
Location: Iasi,Romania
Posts: 16
Reputation: 0
Default Re: Bug Masini

Nu are nimeni nici o idee?
RuCy is offline   Reply With Quote
Old 20/05/2012, 03:29 PM   #8
IuLyAnBoSs
Gangsta
 
IuLyAnBoSs's Avatar
 
Join Date: Jun 2011
Posts: 702
Reputation: 13
Default Re: Bug Masini

Roagal pe babica sa intre la tn in pc si sa iti vada gm ca e bun scripter garantat
IuLyAnBoSs is offline   Reply With Quote
Old 20/05/2012, 06:44 PM   #9
DokerJr
Gangsta
 
DokerJr's Avatar
 
Join Date: Sep 2009
Location: Read SA:MP Forum
Posts: 515
Reputation: 24
Default Re: Bug Masini

Quote:
Originally Posted by IuLyAnBoSs View Post
Roagal pe babica sa intre la tn in pc si sa iti vada gm ca e bun scripter garantat
E la egalitate cu POL_georgica
DokerJr is offline   Reply With Quote
Old 20/05/2012, 06:53 PM   #10
IuLyAnBoSs
Gangsta
 
IuLyAnBoSs's Avatar
 
Join Date: Jun 2011
Posts: 702
Reputation: 13
Default Re: Bug Masini

Ce vrei sa zici cu asta " ca is la egalitate cu POL_georgica"?
IuLyAnBoSs is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG Masini TaVy Romānă/Romanian 3 17/05/2012 05:09 PM
Problema masini otiy Romānă/Romanian 2 05/02/2012 08:46 AM
masini StR_MaRy Romānă/Romanian 3 23/12/2011 06:27 PM
Masini noi Xaras Romānă/Romanian 9 26/11/2011 05:05 PM
Cum bag masini personale? Demoslasher Romānă/Romanian 1 30/04/2011 09:20 PM


All times are GMT. The time now is 07:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.