11.09.2012, 18:08
:S please help
pawn Код:
F:\Users\Daniel\Desktop\GamingClub RP\filterscripts\Oglasnik.pwn(185) : error 017: undefined symbol "BusinessInfo"
F:\Users\Daniel\Desktop\GamingClub RP\filterscripts\Oglasnik.pwn(185) : warning 215: expression has no effect
F:\Users\Daniel\Desktop\GamingClub RP\filterscripts\Oglasnik.pwn(185) : error 001: expected token: ";", but found "]"
F:\Users\Daniel\Desktop\GamingClub RP\filterscripts\Oglasnik.pwn(185) : error 029: invalid expression, assumed zero
F:\Users\Daniel\Desktop\GamingClub RP\filterscripts\Oglasnik.pwn(185) : fatal error 107: too many error messages on one line
pawn Код:
YCMD:kupioglasnik(playerid, params[])
{
new id = IsPlayerNearBizEnt(playerid);
if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "Nesi do oglasnik");
if(BusinessInfo[id][bOwned] != 0 || BusinessInfo[id][bPrice] == 0) return SendClientMessage(playerid, COLOR_GREY, "Ovoj oglasnik ne se prodava."); // THE LINE 185
if(PlayerInfo[playerid][BizID] != 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Veke imas oglasnik.");
if(PlayerInfo[playerid][Money] < BusinessInfo[id][bPrice]) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nemas dovolno pari.");
PlayerInfo[playerid][BizID] = id;
PlayerInfo[playerid][Money] -= BusinessInfo[id][bPrice];
GivePlayerMoney(playerid, -BusinessInfo[id][bPrice]);
BusinessInfo[id][bLocked] = 0;
BusinessInfo[id][bOwned] = 1;
BusinessInfo[id][bOwner] = RemoveUnderScore(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "Cestitki!!Kupivte OGLASNIK!");
return 1;
}