Jump to content

9MMG

Membru
  • Posts

    13
  • Joined

  • Last visited

Posts posted by 9MMG

  1. Problema intalnita (descriere): atunci cand o masina este vanduta , se face bug la dialog si daca incerc sa spawnez o masina ce o am din dialog imi spune ca nu am tipul de masina care l-am vandut
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu):

     				format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s",string1,string2,string3,string4,string5,string6);
    				ShowPlayerDialog(playerid, DIALOG_VEHSP, DIALOG_STYLE_LIST, "Cars Info:", stringy,"Back","Exit");
    				(aici se creeaza dialogul cu tipurile de masini pe care le detine jucatorul)
    				
    				if(dialogid == DIALOG_VEHSP)
    	{
    		if(response)
    	    {
    	        new getcarid = GetPlayerVehicleID(playerid);
    	    	if(listitem == 0)
    			{
    			    if(PlayerInfo[playerid][pPcarkey] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Car 2.");
    	    		if(OwnedVeh(getcarid) == PlayerInfo[playerid][pPcarkey]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have car spawned.");
    	    		if(personalcar[playerid] != 0)
    				{
    		    		vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    					DestroyVehicle(personalcar[playerid]);
    					OwnedVeh(personalcar[playerid]) = 0;
    					personalcar[playerid] = 0;
    				}
    				new carid = PlayerInfo[playerid][pPcarkey];
    	    		new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    		SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    				new engine,lights,alarm,doors,bonnet,boot,objective;
    				if(CarInfo[carid][cLock] == 1)
    				{
    					GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    			SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    				}
    				if(CarInfo[carid][cLock] == 0)
    				{
    					GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    			SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    				}
    				OwnedVeh(car) = carid;
    				personalcar[playerid] = car;
    				format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    				SCM(playerid,COLOR_WHITE,string);
    				SwitchKey[playerid] = 1;
    				ModVehicle(car);
    			}
    	    	if(listitem == 1)
    			{
            if(PlayerInfo[playerid][pmotokey] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Car 2.");
    	    if(OwnedVeh(getcarid) == PlayerInfo[playerid][pmotokey]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have car 2 spawned.");
    	    if(personalcar[playerid] != 0)
    		{
    		    vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    			DestroyVehicle(personalcar[playerid]);
    			OwnedVeh(personalcar[playerid]) = 0;
    			personalcar[playerid] = 0;
    		}
    		new carid = PlayerInfo[playerid][pmotokey];
    	    new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    		new engine,lights,alarm,doors,bonnet,boot,objective;
    		if(CarInfo[carid][cLock] == 1)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    		}
    		if(CarInfo[carid][cLock] == 0)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    		}
    		OwnedVeh(car) = carid;
    		personalcar[playerid] = car;
    		format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    		SCM(playerid,COLOR_WHITE,string);
    		SwitchKey[playerid] = 1;
    		ModVehicle(car);
    		return 1;
    			}
    			if(PlayerInfo[playerid][pPPluscarkey] == 1){
    	    	if(listitem == 2)
    			{
            if(PlayerInfo[playerid][pPPluscarkey] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Plus Car .");
    	    if(OwnedVeh(getcarid) == PlayerInfo[playerid][pPPluscarkey]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have plus car spawned.");
    	    if(personalcar[playerid] != 0)
    		{
    		    vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    			DestroyVehicle(personalcar[playerid]);
    			OwnedVeh(personalcar[playerid]) = 0;
    			personalcar[playerid] = 0;
    		}
    		new carid = PlayerInfo[playerid][pPPluscarkey];
    	    new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    		new engine,lights,alarm,doors,bonnet,boot,objective;
    		if(CarInfo[carid][cLock] == 1)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    		}
    		if(CarInfo[carid][cLock] == 0)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    		}
    		OwnedVeh(car) = carid;
    		personalcar[playerid] = car;
    		format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    		SCM(playerid,COLOR_WHITE,string);
    		SwitchKey[playerid] = 1;
    		ModVehicle(car);
    		return 1;
    			}
    	    	if(listitem == 3)
    			{
    			if(PlayerInfo[playerid][pPPluscarkey2] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Plus Car 2.");
    	    if(OwnedVeh(getcarid) == PlayerInfo[playerid][pPPluscarkey2]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have plus car 2 spawned.");
    	    if(personalcar[playerid] != 0)
    		{
    		    vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    			DestroyVehicle(personalcar[playerid]);
    			OwnedVeh(personalcar[playerid]) = 0;
    			personalcar[playerid] = 0;
    		}
    		new carid = PlayerInfo[playerid][pPPluscarkey2];
    	    new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    		new engine,lights,alarm,doors,bonnet,boot,objective;
    		if(CarInfo[carid][cLock] == 1)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    		}
    		if(CarInfo[carid][cLock] == 0)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    		}
    		OwnedVeh(car) = carid;
    		personalcar[playerid] = car;
    		format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    		SCM(playerid,COLOR_WHITE,string);
    		SwitchKey[playerid] = 1;
    		ModVehicle(car);
    		return 1;
    			}
    	    	if(listitem == 4)
    			{
            if(PlayerInfo[playerid][pprcarkey] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Premium Car .");
    	    if(OwnedVeh(getcarid) == PlayerInfo[playerid][pprcarkey]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have premium car spawned.");
    	    if(personalcar[playerid] != 0)
    		{
    		    vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    			DestroyVehicle(personalcar[playerid]);
    			OwnedVeh(personalcar[playerid]) = 0;
    			personalcar[playerid] = 0;
    		}
    		new carid = PlayerInfo[playerid][pprcarkey];
    	    new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    		new engine,lights,alarm,doors,bonnet,boot,objective;
    		if(CarInfo[carid][cLock] == 1)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    		}
    		if(CarInfo[carid][cLock] == 0)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    		}
    		OwnedVeh(car) = carid;
    		personalcar[playerid] = car;
    		format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    		SCM(playerid,COLOR_WHITE,string);
    		SwitchKey[playerid] = 1;
    		ModVehicle(car);
    		return 1;
    			}
    			if(listitem == 5)
    			{
         if(PlayerInfo[playerid][pprcarkey2] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not own a Premium Car 2.");
    	    if(OwnedVeh(getcarid) == PlayerInfo[playerid][pprcarkey2]) return SCM(playerid,COLOR_WHITE,"{FFB870}You already have premium car 2 spawned.");
    	    if(personalcar[playerid] != 0)
    		{
    		    vUpdate(OwnedVeh(personalcar[playerid]), cKMx);
    			DestroyVehicle(personalcar[playerid]);
    			OwnedVeh(personalcar[playerid]) = 0;
    			personalcar[playerid] = 0;
    		}
    		new carid = PlayerInfo[playerid][pprcarkey2];
    	    new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000);
    	    SetVehicleNumberPlate(car, CarInfo[carid][cLicense]);
    		new engine,lights,alarm,doors,bonnet,boot,objective;
    		if(CarInfo[carid][cLock] == 1)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective);
    		}
    		if(CarInfo[carid][cLock] == 0)
    		{
    			GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    	    	SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective);
    		}
    		OwnedVeh(car) = carid;
    		personalcar[playerid] = car;
    		format(string,sizeof(string),"{FFB870}You spawned your %s.",CarInfo[carid][cDescription]);
    		SCM(playerid,COLOR_WHITE,string);
    		SwitchKey[playerid] = 1;
    		ModVehicle(car);
    		return 1;
    			}
    		}
    		return 1;


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

  2. Problema intalnita (descriere): In joc nu apare tot dialog-ul ce ar trebuii sa apara (toate masinile pe care le detii), apare doar 1 si jumatate din cea dea doua...
    Ero(area / rile) / warning-(ul / urile):-
    Liniile de cod / sursa / script-ul(obligatoriu):

    		if(response)
    	    {
    	    	if(listitem == 0)
    			{
    			    if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0 && PlayerInfo[playerid][pprcarkey2] == 0 && PlayerInfo[playerid][pPPluscarkey] == 0 && PlayerInfo[playerid][pPPluscarkey2] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle.");
                    new stringy[128],string1[128],string2[356],string3[356],string4[356],string5[356],string6[356];
    
    				if(PlayerInfo[playerid][pPcarkey] != 0)
        			{
                    	new carid = PlayerInfo[playerid][pPcarkey],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
      							locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string1,sizeof(string1),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    				}
    				if(PlayerInfo[playerid][pmotokey] != 0)
        				{
    					new carid = PlayerInfo[playerid][pmotokey],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
    		    				locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string2,sizeof(string2),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    					}
    				if(PlayerInfo[playerid][pprcarkey] != 0)
    					{
    					new carid = PlayerInfo[playerid][pprcarkey],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
    		    				locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string3,sizeof(string3),"Premium Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    					}
    				if(PlayerInfo[playerid][pprcarkey2] != 0)
    					{
    					new carid = PlayerInfo[playerid][pprcarkey2],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
    		    				locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string4,sizeof(string4),"Premium Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    					}
    				if(PlayerInfo[playerid][pPPluscarkey] != 0)
    					{
    					new carid = PlayerInfo[playerid][pPPluscarkey],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
    		    				locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string5,sizeof(string5),"Plus Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    					}
    				if(PlayerInfo[playerid][pPPluscarkey2] != 0)
    					{
    					new carid = PlayerInfo[playerid][pPPluscarkey2],locked[6];
    					if(CarInfo[carid][cLock] == 1)
    						{
    		    				locked = "Yes";
    						}
    					else
    						{
    		    				locked = "No";
    						}
    					format(string6,sizeof(string6),"Plus Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
    					}
     				format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s",string1,string2,string3,string4,string5,string6);
    				ShowPlayerDialog(playerid, DIALOG_CARSS, DIALOG_STYLE_MSGBOX, "Cars Info:", stringy,"Back","Exit");
    			}
    CMD:betacmd(playerid,params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            ShowPlayerDialog(playerid,DIALOG_CARSS2,DIALOG_STYLE_LIST, "Car Tool:", "1.Cars Info\n2.Spawn your car.", "Select","Exit");
    	}
    	return 1;
    }


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

  3. Acum da din minut in minut payday.

     

    public SyncUp()
    {
    	new string[128],
    		tmphour,
    		tmpminute,
    		tmpsecond,
    		hour,
    		minn,
    		sec;
    	gettime(hour,minn,sec);
    	gettime(tmphour, tmpminute, tmpsecond);
    	FixHour(tmphour);
    	tmphour = shifthour;
    	if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    	{
    		format(string, sizeof(string), "SERVER: The time is now %d:00 hours",hour);
    		BroadCast(COLOR_WHITE,string);
    		ghour = tmphour;
    		PayDay();

     

  4. synctimer = SetTimer("SyncUp", 60000, 1);

     

     

        //Timer
        if (realtime)
        {
            new tmphour,
                tmpminute,
                tmpsecond;
            gettime(tmphour, tmpminute, tmpsecond);
            FixHour(tmphour);
            tmphour = shifthour;
            new worldt = tmphour;
            SetWorldTime(worldt);
        }
        synctimer = SetTimer("SyncUp", 60000, 1);
        unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
        othtimer = SetTimer("OtherTimer", 1000, 1);
        cartimer = SetTimer("CarCheck", 30000, 1);
        idletimer = SetTimer("IdleKick", idletime, 1);
        pickuptimer = SetTimer("CustomPickups", 1000, 1);
        spectatetimer = SetTimer("Spectator", 2000, 1);
        productiontimer = SetTimer("Production", 300000, 1); //5 mins (300000)
        checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
        stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, 1);
        checkvehinfotimer = SetTimer("Checkvehinfo",1000, 1);
        pnstimer = SetTimer("SetPlayerPNS", 2000, 1);
        wantedicatimer = SetTimer("SetWantedica", 5000, 1);
        SetTimer("SendMSG", 300000, 1);

        printf("OnGameModeInit Loaded");
        return 1;
    }

     

  5. Problema intalnita (descriere): Nu da payday , mergea inainte , dar acum nu mai merge..
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu):

    public PayDay()
    {
    	new string[128],
    		str[256],
    		string3[128],
    		interest,
    		account[MAX_PLAYERS],
    		hour,
    		minn,
    		sec,
    		expamount,
    		rent[MAX_PLAYERS];
    	gettime(hour,minn,sec);
    	foreach(Player,i)
    	{
    		if(IsPlayerConnected(i))
    		{
    		    if(PlayerInfo[i][pLevel] >= 0)
    		    {
                	new wakaname[25];
                    GetPlayerName(i,wakaname,sizeof(wakaname));
    			    if(MoneyMessage[i]==1)
    				{
    				    SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
                        new rand;
    					rand = random(sizeof(gRandomJailSpawns));
    					SetPlayerInterior(i, 6);
    					SetPlayerPos(i,gRandomJailSpawns[rand][0],gRandomJailSpawns[rand][1],gRandomJailSpawns[rand][2]);
    		            PlayerInfo[i][pJailed] = 1;
    		            ResetPlayerWeaponsEx(i);
    		            ResetPlayerWeapons(i);
    					WantedPoints[i] = 0;
    					PlayerInfo[i][pJailTime] = 240;
    					format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[i][pJailTime]);
    					SendClientMessage(i, COLOR_LIGHTBLUE, string);
    					Update(i,pJailedx);
    					Update(i,pJailTimex);
    					TogglePlayerControllable(i, 0);
    					SetTimerEx("UnFreezeStation", 1000, false, "i", i);
    				}
    				new playername2[MAX_PLAYER_NAME];
    				GetPlayerName(i, playername2, sizeof(playername2));
    				new key = PlayerInfo[i][pPhousekey];
    				if(key != 999)
    				{
    					rent[i] = HouseInfo[key][hRent];
    					if(rent[i] > GetPlayerCash(i) && strcmp(playername2, HouseInfo[key][hOwner], false) == 0)
    					{
    						PlayerInfo[i][pPhousekey] = 999;
    						Update(i,pPhousekeyx);
    					}
    					HouseInfo[key][hTakings] += rent[i];
    				    mysql_format(SQL,str,sizeof(str),"UPDATE `houses` SET `Takings`='%d' WHERE `ID`='%d'",HouseInfo[key][hTakings],key);
    				    mysql_tquery(SQL,str,"","");
    				}
    				if(PlayerInfo[i][pPayDay] >= 5)
    				{
    					new tmpintrate;
    					if(PlayerInfo[i][pPremiumAccount] == 1)
    					{
    						tmpintrate = 2;
    					    PlayerInfo[i][pPayDayHad] += 1;
    					    if(PlayerInfo[i][pPayDayHad] >= 5)
    					    {
    					        PlayerInfo[i][pExp]++;
    					        PlayerInfo[i][pPayDayHad] = 0;
    					        SCM(i,COLOR_LIGHTBLUE,"You got 1 respect point bonus because you have premium account.");
    					    }
    					    new bonus = PlayerInfo[i][pPayCheck] / 2;
    					    PlayerInfo[i][pPayCheck] += bonus;
    					}
    					else
    					{
    						tmpintrate = 1;
    					}
    					account[i] = PlayerInfo[i][pAccount];
    					Tax += TaxValue;
    				    PlayerInfo[i][pAccount] -= TaxValue;
    					new checks = PlayerInfo[i][pPayCheck],
    				    	ebill = (PlayerInfo[i][pLevel]*SBizzInfo[14][sbEntranceCost]/100);
    				    PlayerInfo[i][pAccount] += checks;
    					interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
    					PlayerInfo[i][pExp] += 1;
    					PlayerInfo[i][pAccount] += interest;
    					SendClientMessage(i, COLOR_TEAL, "----------------------------------------------------------------------------");
    					SendClientMessage(i, COLOR_WHITE, "Your paycheck has arrived; please visit the bank to withdraw your money.");
    					format(string, sizeof(string), "Paycheck: $%s | Bank balance: $%s | Bank interest: $%s | Tax: $%s (10 percent)", FormatNumber(checks), FormatNumber(PlayerInfo[i][pAccount]), FormatNumber(interest), FormatNumber(TaxValue));
    					SendClientMessage(i, COLOR_GREY, string);
    					format(string3, sizeof(string3), "Rent: $%s | Total earnings: $%d", FormatNumber(rent[i]), checks-TaxValue);
    					SendClientMessage(i, COLOR_GREY, string3);
    					SendClientMessage(i, COLOR_TEAL, "----------------------------------------------------------------------------");
    					if(PlayerInfo[i][pAccount] >= ebill && key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    					{
    				    	PlayerInfo[i][pAccount] -= ebill;
    				    	SBizzInfo[14][sbTill] += ebill;
    				    	mysql_format(SQL,str,sizeof(str),"UPDATE `sbizz` SET `Till`='%d' WHERE `ID`='14'",SBizzInfo[14][sbTill]);
    						mysql_tquery(SQL,str,"","");
    					}
    					else
    					{
    					    ebill = 0;
    					}
    					format(string, sizeof(string), "~y~payday");
    					GameTextForPlayer(i, string, 5000, 1);
    					PlayerInfo[i][pPayDay] = 0;
    					PlayerInfo[i][pPayCheck] = 0;
    					if(PlayerInfo[i][pCarLicT] > 0)
    					{
    						PlayerInfo[i][pCarLicT] -= 1;
    					}
    					if(PlayerInfo[i][pFlyLicT] > 0)
    					{
    						PlayerInfo[i][pFlyLicT] -= 1;
    					}
    					if(PlayerInfo[i][pBoatLicT] > 0)
    					{
    						PlayerInfo[i][pBoatLicT] -= 1;
    					}
        				if(PlayerInfo[i][pGunLicT] > 0)
    					{
    						PlayerInfo[i][pGunLicT] -= 1;
    					}
    					if(PlayerInfo[i][pRob] < 10)
    	                {
                            PlayerInfo[i][pRob]++;
    	                }
    	 				if(PlayerInfo[i][pFpunish] > 0)
    	 				{
    						PlayerInfo[i][pFpunish]--;
    			 		}
    					if(PlayerInfo[i][pSleeping] == 0)
    					{
                    	    PlayerInfo[i][pConnectTime] += 1;
                    	}
                    	if(IsACop(i))
    					{
                    	    PlayerInfo[i][pLawyer] += 1;
                    	}
    					if(PlayerInfo[i][pLevel] == 1 || PlayerInfo[i][pLevel] == 2 || PlayerInfo[i][pLevel] == 3 || PlayerInfo[i][pLevel] == 4)
    					{
    					    expamount = PlayerInfo[i][pLevel]*2;
    						if(PlayerInfo[i][pExp] >= expamount)
    						{
    						    SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
    						}
    					}
    					else if(PlayerInfo[i][pLevel] >= 5)
    					{
    					    expamount = PlayerInfo[i][pLevel]*3;
    						if(PlayerInfo[i][pExp] >= expamount)
    						{
    						    SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
    						}
    					}
    				}
    				else
    				{
    					SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay.");
    				}
    			}
    		}
    	}
    	for(new x = 0; x < MAX_GROUPS; x++)
    	{
    	    DynamicFactions[x][fBank] += DynamicFactions[x][fPaydayMoney];
    	    mysql_format(SQL,str,sizeof(str),"UPDATE `factions` SET `Bank`='%d' WHERE `ID`='%d'",DynamicFactions[x][fBank],x);
    		mysql_tquery(SQL,str,"","");
    	}
    	return 1;
    }
    
    


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

  6. Problema intalnita (descriere): Totul merge ok. Structura e bine facuta insa in joc nu imi apare text-drawul ce ar trebuii sa apara
    Ero(area / rile) / warning-(ul / urile):-
    Liniile de cod / sursa / script-ul(obligatoriu):

    public OnGameModeInit()
    {
            for(new i=0;i<MAX_PLAYERS;i++){
            SafeText[i] = TextDrawCreate(60.000000, 426.000000, "SafeZone");
    		TextDrawBackgroundColor(SafeText[i], 255);
    		TextDrawFont(SafeText[i], 3);
    		TextDrawLetterSize(SafeText[i], 0.369999, 1.300000);
    		TextDrawColor(SafeText[i], -1);
    		TextDrawSetOutline(SafeText[i], 1);
    		TextDrawSetProportional(SafeText[i], 1);
    		TextDrawUseBox(SafeText[i], 1);
    		TextDrawBoxColor(SafeText[i], 255);
    		TextDrawTextSize(SafeText[i], 118.000000, 2.000000);
    		}
    return 1;
    public OnPlayerConnect(playerid)
    {
        for(new Sz; Sz < MAX_SZ; Sz++)
        {
        	for(new i=0;i<MAX_PLAYERS;i++)
    		{
      			if(IsPlayerInRangeOfPoint(playerid,50.0,1795.181030,-1863.689941,13.574766) || IsPlayerInRangeOfPoint(playerid,50.0,1545.241210,-1683.332763,13.556713) || IsPlayerInRangeOfPoint(playerid,35.0,-57.749824,-1130.877807,1.078125) || IsPlayerInRangeOfPoint(playerid,40.0,382.820648,-2070.391845,7.835937) || IsPlayerInRangeOfPoint(playerid,35.0, 1469.504760,-1023.742126,23.833103) || IsPlayerInRangeOfPoint(playerid,200.0, -380.148132,-1428.575439,25.726562))
    			{
    	 			TextDrawShowForPlayer(i, SafeText[i]);
    			}
     			if(!(IsPlayerInRangeOfPoint(playerid,50.0,1795.181030,-1863.689941,13.574766) || IsPlayerInRangeOfPoint(playerid,50.0,1545.241210,-1683.332763,13.556713) || IsPlayerInRangeOfPoint(playerid,35.0,-57.749824,-1130.877807,1.078125) || IsPlayerInRangeOfPoint(playerid,40.0,382.820648,-2070.391845,7.835937) || IsPlayerInRangeOfPoint(playerid,35.0, 1469.504760,-1023.742126,23.833103) || IsPlayerInRangeOfPoint(playerid,200.0, -380.148132,-1428.575439,25.726562)))
    			{
    				TextDrawHideForPlayer(i, SafeText[i]);
    			}
    		}
    	}
    	return 1;
    }


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

  7. Problema intalnita (descriere): O serie de erori ale compilatorului , din cauza include-ului cred.
    Ero(area / rile) / warning-(ul / urile): 
    Liniile de cod / sursa / script-ul(obligatoriu): -
    Imagini / Video (optional):-
    Ati incercat sa rezolvati singur?: Da

    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(11032) : error 017: undefined symbol "GangZoneHideForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(11035) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(11039) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(11043) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(11047) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21023) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21027) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21031) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21035) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21039) : error 017: undefined symbol "GangZoneShowForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(21048) : error 017: undefined symbol "GangZoneHideForPlayerEx"
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(46187) : error 010: invalid function or declaration
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(46189) : error 010: invalid function or declaration
    E:\Documents and Settings\Adi\Desktop\New Folder\gamemodes\Beta1.pwn(46192) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    14 Errors.

    #include <a_samp>        //1
    #include <a_mysql>        //2
    #include <streamer>        //3
    #include <playerzone>    //4
    #include <foreach>        //5
    #include <sscanf2>        //6
    #include <zcmd>            //7
    #include <mSelection>   //8
    #include <a_zones>      //9
    #include <beaZone>      //10
    #include <timerfix>     //11
    #include <fly>          //12
    #include <crashdetect>  //13

     

×
×
  • 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.