Komanda, dodavanje zetona +1

Započeo strahinja, Novembar 01, 2013, 11:23:37 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Mod: dlrp
Opis: Warning:
warning 215: expression has no effect

LINIJA: PlayerInfo[playerid][pZeton]+1;
Skripta:
CMD:kupizeton(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 3.0,246.36260,87.5008,1003.6406))
	{
		if(GetPlayerMoney(playerid) > 19)
		{
			PlayerInfo[playerid][pZeton]+1;
			SendClientMessage(playerid, COLOR_GRAD1, "[Prodavac] {F3FF02}Kupili ste zeton, cena: 20$.");
			SafeGivePlayerMoney(playerid,-20);
			SBizzInfo[63][sbTill] += 20;
			ExtortionSBiz(63, 20);
			SBizzInfo[63][sbProducts]--;
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GRAD1, " {F3FF02}Niste na mestu kupovanja zetona:3!");
		return 1;
	}
	return 1;
}

Slika: /

Obelezi liniju de ti izlazi warning.Ne mogu da nagadjam koja je !
    ~ Member since: 09.13.2013. - 15:30 ~

napisao sam

LINIJA: PlayerInfo[playerid][pZeton]+1;

Nisam video :D
Probaj ovako.
CMD:kupizeton(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 3.0,246.36260,87.5008,1003.6406))
	{
		if(GetPlayerMoney(playerid) > 19)
		{
		PlayerInfo[playerid][pZeton]+1;
		SendClientMessage(playerid, COLOR_GRAD1, "[Prodavac] {F3FF02}Kupili ste zeton, cena: 20$.");
		SafeGivePlayerMoney(playerid,-20);
		SBizzInfo[63][sbTill] += 20;
		ExtortionSBiz(63, 20);
		SBizzInfo[63][sbProducts]--;
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GRAD1, " {F3FF02}Niste na mestu kupovanja zetona:3!");
		return 1;
	}
	return 1;
}
    ~ Member since: 09.13.2013. - 15:30 ~