Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: MicroSD_ poslato Maj 24, 2012, 14:39:48 POSLE PODNE

Naslov: [pomoc]zeton
Poruka od: MicroSD_ poslato Maj 24, 2012, 14:39:48 POSLE PODNE
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;
Naslov: Odg: [pomoc]zeton
Poruka od: [BUN]Lukas poslato Maj 24, 2012, 15:22:39 POSLE PODNE
Stavi ovako PlayerInfo[playerid][pZeton] += 1);
Naslov: Odg: [pomoc]zeton
Poruka od: MicroSD_ poslato Maj 24, 2012, 15:28:04 POSLE PODNE
ne radi... 4 errora :D
Naslov: Odg: [pomoc]zeton
Poruka od: MEMOREX™️ poslato Maj 24, 2012, 15:28:41 POSLE PODNE
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;
}
}