not reading right
#1

hy guys i have a sistem that if you type a command it gives you a dialog that you need to type the id of player you want to give money and after you typed this dialog will apear

Код HTML:
if(dialogid == DIALOG_PREMIUEVENT2)
		{
		    if(DialogExploit(inputtext)) return SendClientMessage(playerid, COLOR_WHITE, "Ai folosit caractere nepermise in componenta noului tau nume.");
            new banipentruevent = strval(inputtext);
			if(MoneyACheck(playerid, banipentruevent, 1, 1000000)) return 1;
        	if(GetPlayerCash(playerid) < banipentruevent) return SendClientMessage(playerid, COLOR_WHITE, "Tu nu ai suficienti bani.");

	       	if(GetPlayers(splayer) == INVALID_PLAYER_ID) return InvalidPlayer(playerid);
			else if(GetPlayers(splayer) == 1000) return ToManyResults(playerid);
			else if(GetPlayers(splayer) == 1001) return ShowResults(playerid, splayer);
			else giveplayerid = GetPlayers(splayer);

	        GivePlayerCash(playerid, -banipentruevent);
	        GivePlayerCash(giveplayerid, banipentruevent);
			format(gString, sizeof(gString), "Organizatorul event-ului %s ia acordat premiu %d$ lui %s , pentru castigarea event-ului.",GetName(playerid), GetName(giveplayerid));
		    SendClientMessageToAll(COLOR_WHITE, gString);
			format(string, sizeof(string), "(!) {FFFFFF}%s (%d) a primit suma de banii trimisa de tine, motiv: castigatorul event-ului.", GetName(id), id);
			SendClientMessage(playerid, COLOR_WHITE, string);
			format(string, sizeof(string), "(!) {FFFFFF}%s (%d) ti-a oferit %d , motiv: castigarea event-ului.", GetName(playerid), playerid, banipentruevent);
			SendClientMessage(id, COLOR_WHITE, string);
		}
ok so i have at me 100.000.000$ and in my bank acc i have 1.000.000$ and i just put 1.000$ on that dialog but it say's "you have no money"
why?
Reply


Messages In This Thread
not reading right - by StR_MaRy - 05.11.2016, 16:37
Respuesta: not reading right - by Swedky - 05.11.2016, 17:12
Re: not reading right - by StR_MaRy - 05.11.2016, 17:26
Respuesta: not reading right - by Swedky - 05.11.2016, 17:36
Re: not reading right - by StR_MaRy - 05.11.2016, 17:44
Respuesta: not reading right - by Swedky - 05.11.2016, 19:22
Re: not reading right - by StR_MaRy - 06.11.2016, 01:16

Forum Jump:


Users browsing this thread: 1 Guest(s)