[pomoc]zeton

Započeo MicroSD_
24. Maj 2012.
553
pregleda
4
postova
CH | Marko
5
Underboss
24. Maj 2012.
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 == 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 += 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 += 1;
[BU]Lukas
4
Enforcer
24. Maj 2012.
Stavi ovako PlayerInfo += 1);
CH | Marko
5
Underboss
24. Maj 2012.
ne radi... 4 errora 😄
Memorexâ„¢
4
Made Man
24. Maj 2012.
Stavi ovako:

CMD:kupizeton(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 3,1023.6085,-889.9498,44.0966))
{
if(PlayerInfo == 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 += 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;
}
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha