Jump to content
  • 0

Problema cars


VLM

Question

15 answers to this question

Recommended Posts

  • 0
On 11/26/2017 at 2:27 AM, MiritaXD said:

Daca e sistemul dupa bigzone este o verificare. la ora 23 sa iti dea carday++

Bun, si ce tre sa caut in gamemode?

On 11/23/2017 at 1:41 PM, ASGOOD said:

Pai trb sa le salvezi folosindu-te de mysql

Ce tab trebuie sa fie in mysql la cars?

Edited by VLM

#retras

Link to comment
Share on other sites

  • 0
Acum 4 ore, VLM a spus:

Pai si atunci ... Ce tre sa caut? ..

Cauti variabila care îți setează zilele dupa te duci la un timer, acolo setezi la ora x sa iti seteze zilele

Ex:

if(ora == 69){

        carinfo[....][variabilacarday]++;

}

Edited by MiritaXD
Link to comment
Share on other sites

  • 0

Am gasit la ce va referati !

		if(hour == 23)
		{
			new str[256];
			mysql_tquery(SQL,"UPDATE 'cars' SET 'days' = 'days'+1","","");
			foreach(Player,i)
		    {
		        for(new v; v < PlayerInfo[i][pCarSlots]; v++)
				{
					if(PlayerInfo[i][pCar][v] != -1)
					{
						PlayerInfo[i][pCarDays][v]++;
						PlayerInfo[i][pCarInsPrice][v] += 50;
					}
				}
			}

Ce problema e ?

1 hour ago, MiritaXD said:

Cauti variabila care îți setează zilele dupa te duci la un timer, acolo setezi la ora x sa iti seteze zilele

Ex:

if(ora == 69){

        carinfo[....][variabilacarday]++;

}

 

15 hours ago, valivaly96 said:

problema e la timerul care verifica daca e ora 23 sa iti dea days++. nu stiu exact cum e verificarea ca sa cauti in gm

 

#retras

Link to comment
Share on other sites

  • 0
Acum 26 minute, VLM a spus:

Am gasit la ce va referati !


		if(hour == 23)
		{
			new str[256];
			mysql_tquery(SQL,"UPDATE 'cars' SET 'days' = 'days'+1","","");
			foreach(Player,i)
		    {
		        for(new v; v < PlayerInfo[i][pCarSlots]; v++)
				{
					if(PlayerInfo[i][pCar][v] != -1)
					{
						PlayerInfo[i][pCarDays][v]++;
						PlayerInfo[i][pCarInsPrice][v] += 50;
					}
				}
			}

Ce problema e ?

 

 

In baza de date cresc days? Serverul este on cand pe acesta ora este 23:00?

Link to comment
Share on other sites

  • 0

incearca si asta

if(hour == 23)
        {
            new str[256];
        //    mysql_tquery(SQL,"UPDATE 'cars' SET 'days' = 'days'+1","","");
            mysql_tquery(SQL,"UPDATE cars SET days = days+1","","");
            foreach(Player,i)
            {
                for(new v; v < PlayerInfo[i][pCarSlots]; v++)
                {
                    if(PlayerInfo[i][pCar][v] != -1)
                    {
                        PlayerInfo[i][pCarDays][v]++;
                        PlayerInfo[i][pCarInsPrice][v] += 50;
                    }
                }
            }
        }

 

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.