Detaljan opis problema:erori I warninzi na komandi
Dio skripte:
CMD:stealgold(playerid, params[])
{
if( GetFactionType( playerid ) == ORG_TIP_BANDA ) return SCM(playerid, COLOR_LAWNGREEN,"Nisi clan bande");
if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
new id, Float:Poz, ukradeno;
if(sscanf(params, "u", id)) return GRESKA( playerid, "/stealgold [ID/Ime]");
if(!IsPlayerConnected(id)) return GRESKA( playerid, "[BM:HP] "ZUTA"Igrac je offline!");
if(id == playerid) return GRESKA( playerid, "ZUTA"Ne mozete krasti sami sebi golde!");
if(IsPlayerInAnyVehicle(playerid)) return GRESKA( playerid, "[BM:HP] "ZUTA"Ne mozete krasti dok ste u vozilu!");
if(IsPlayerInAnyVehicle(id)) return GRESKA( playerid, "[BM:HP] "ZUTA"Ne mozete krasti igraca koji je u vozilu!");
if(PlayerInfo == 1 && PlayerInfo == 2 && PlayerInfo == 3) return GRESKA( playerid, "[BM:HP] "ZUTA" Taj igrac je jos Civil idi kradi Budze!");
GetPlayerPos(id, Poz, Poz, Poz);
if(!IsPlayerInRangeOfPoint(playerid, 5.0, Poz, Poz, Poz)) return GRESKA( playerid, "[BM:HP] "ZUTA"Predaleko ste!");
if(IsPlayerInRangeOfPoint(playerid, 50, 1480.7512,-1666.8536,13.4102)) return GRESKA( playerid, "[BM:HP] "ZUTA"Ne mozete krasti golde ispred opstine!");
if(IsPlayerInRangeOfPoint(playerid, 50.0, 1289.392211,-1330.239257,18.860641)) return GRESKA( playerid, "[BM:HP] "ZUTA"Ne mozete krasti golde na berzi!");
if(PlayerInfo < 10)
{
ukradeno = PlayerInfo / 10 * 3;
if(PlayerInfo < ukradeno)
PlayerInfo -= ukradeno; PlayerInfo += ukradeno;
UpdateZlatoTD(playerid);
Pinki_SetPlayerWantedLevel += 6;
PostaviWanted( playerid, "Kradja Zlata", "Nepoznati", 6 );
SCMF(playerid, -1, ""CRVENA": "CRVENA"Uspesno ste ukrali Golde! Kolicina %d$!", ukradeno);
SCMF(id, -1,""CRVENA": "ZUTA"Igrac %s vam je ukrao %d golda!",ImeIgraca(playerid), ukradeno);
return 1;
}
return 1;
}
erori I warninzi
47976) : error 001: expected token: "-string end-", but found "-identifier-"
(47976) : warning 215: expression has no effect
(47976) : error 001: expected token: ";", but found "-string-"
(47976) : warning 215: expression has no effect
(47976) : error 001: expected token: ";", but found ")"
(47976) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.

