Jump to content

Question

Posted

"Ma joc" in gamemode-ul lui HPQ, si am descoperit ca daca incerc sa adaug un Vip ticket la trade primesc o eroare, chiar daca am ticket vip, si daca bag un ticket rainbow, ii da celuilalt jucator ticket vip.


		case DIALOG_TRADEVOUCHERR: {
			if(!response)
				return true;
			new amount = strval(inputtext);
			if(strval(inputtext) <= 0)
				return SCM(playerid, COLOR_LGREEN, "Eroare: Suma invalida.");

			if(PlayerInfo[playerid][pTickete][0] < amount)
				return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai aceste tickete.");

			AddTradeItem(playerid, 10, strval(inputtext));
		}
		case DIALOG_TRADEVOUCHERV: {
			if(!response)
				return true;
			new amount = strval(inputtext);
			if(strval(inputtext) <= 0)
				return SCM(playerid, COLOR_LGREEN, "Eroare: Suma invalida.");

			if(PlayerInfo[playerid][pTickete][1] < amount)
				return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai aceste tickete.");

			AddTradeItem(playerid, 11, strval(inputtext));
		}

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.