[pomoc]zeton


Započeo MicroSD_, Maj 24, 2012, 14:39:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Radim ono za autice na sudaranje i imam problema kod komande za zetone
Dio skripte:
CMD:kupizeton(playerid, params[])
	{
		if (IsPlayerInRangeOfPoint(playerid, 3,1023.6085,-889.9498,44.0966))
		{
			if(PlayerInfo[playerid][pZeton] == 3)
			{
				SendClientMessage(playerid, COLOR_GREY, "**Nemozete imati vese od 3 zetona!");
				return 1;
			}
			if(GetPlayerMoney(playerid) < 49)
	        {
         		SendClientMessage( playerid, COLOR_GREY, "**Nemate dovoljno novca zeton kosta 50$!");
         		return 1;
			}
			GivePlayerCash(playerid, -50)
			
			PlayerInfo[playerid][pZeton] += 1;
			SendClientMessage( playerid, COLOR_GREY, "**Mozete kupiti vise zetona, da se nebi vracali na kasu.");
	        SendClientMessage(playerid, COLOR_WHITE, "Kupili ste zeton.");
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "**Niste kod Kase za kupovinu zetona!");
			return 1;
		}
	}



i onda imam ovaj error:

error 001: expected token: ";", but found "-identifier-"



to je ovaj red:

PlayerInfo[playerid][pZeton] += 1;
Poslednja Izmena: Maj 24, 2012, 14:42:13 POSLE PODNE od Claude_

Stavi ovako PlayerInfo[playerid][pZeton] += 1);


Stavi ovako:
CMD:kupizeton(playerid, params[])
	{
		if (IsPlayerInRangeOfPoint(playerid, 3,1023.6085,-889.9498,44.0966))
		{
			if(PlayerInfo[playerid][pZeton] == 3)
			{
				SendClientMessage(playerid, COLOR_GREY, "**Nemozete imati vese od 3 zetona!");
				return 1;
			}
			if(GetPlayerMoney(playerid) < 49)
	        {
         		SendClientMessage( playerid, COLOR_GREY, "**Nemate dovoljno novca zeton kosta 50$!");
         		return 1;
			}
			GivePlayerCash(playerid, -50);//TU si zaboravio ;
			
			PlayerInfo[playerid][pZeton] += 1;
			SendClientMessage( playerid, COLOR_GREY, "**Mozete kupiti vise zetona, da se nebi vracali na kasu.");
	        SendClientMessage(playerid, COLOR_WHITE, "Kupili ste zeton.");
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "**Niste kod Kase za kupovinu zetona!");
			return 1;
		}
	}
Skriptam za pare