[Pomoc] Ima bag


Započeo AlpinaWorld, Novembar 19, 2012, 18:38:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Pa idem pred trafici i da kupim telefon ili bilo sta,imam 50 000$ a telefon e 150$ i ulegnem u minnus -150$ sta e problem?
Dio skripte:
else if (listitem == 3 && GetPlayerMoney(playerid) > 10)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 10 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 10 - price;
						GivePlayerMoney(playerid,- payout);
						SBizzInfo[16][sbTill] += payout;
						ExtortionSBiz(16, payout);
						SBizzInfo[16][sbProducts]--;
						OnPropUpdate();
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    GivePlayerMoney(playerid,-10);
						SBizzInfo[16][sbTill] += 10;
						ExtortionSBiz(16, 10);
						SBizzInfo[16][sbProducts]--;
	                    OnPropUpdate();
						format(string, sizeof(string), "~r~-$%d", 10);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					gDice[playerid] = 1;
					format(string, sizeof(string), "{37F906}INFO:{FFFFFF} Kupivte kocka, sega mozete da frlate kocka.");
					SendClientMessage(playerid, WHITE, string);
					SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF} Koristi {FFFFFF}/dice.");
					return 1;
				}

GivePlayerMoney(playerid,-10);

Neke slike/video za lakse dobivanje pomoci(neobavezno):
www.Game-State.eu" style="border-style: none;

Blaeks

*

Madmen

else if (listitem == 3 && GetPlayerMoney(playerid) > 10)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 10 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 10 - price;
						GivePlayerMoney(playerid, payout);
						SBizzInfo[16][sbTill] += payout;
						ExtortionSBiz(16, payout);
						SBizzInfo[16][sbProducts]--;
						OnPropUpdate();
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    GivePlayerMoney(playerid,-10);
						SBizzInfo[16][sbTill] += 10;
						ExtortionSBiz(16, 10);
						SBizzInfo[16][sbProducts]--;
	                    OnPropUpdate();
						format(string, sizeof(string), "~r~-$%d", 10);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					gDice[playerid] = 1;
					format(string, sizeof(string), "{37F906}INFO:{FFFFFF} Kupivte kocka, sega mozete da frlate kocka.");
					SendClientMessage(playerid, WHITE, string);
					SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF} Koristi {FFFFFF}/dice.");
					return 1;
				}
probaj ovako