[Pomoc] oko biza

Započeo Albatraoz, Septembar 30, 2012, 22:02:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: //
Detaljan opis problema: radim biz sistem po tutu sa SAMP foruma pa mi je nesto zapelo ako moze pomoc 8)
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


komanda gdje su errori
YCMD:lockbiz(playerid, params[])
{
    new id = IsPlayerNearBizEnt(playerid);//Uses the function to find if player is near a biz!
    if(id(playerid) != pInfo[playerid][BizID]) return SCM(playerid, COLOR_GREY, "This isn't your biz!");
    if(BusinessInfo[id][bLocked] == 1)
	else
	SCM(playerid, COLOR_GREY, "This isn't your biz!");
    if(BusinessInfo[id][bLocked] == 1)
    {
        BusinessInfo[id][bLocked] = 0;
        GameTextForPlayer(playerid, "Biz ~g~unlocked!", 3000, 3);
    }
    else
    {
        BusinessInfo[id][bLocked] = 1;
        GameTextForPlayer(playerid, "Biz ~r~locked!", 3000, 3);
    }
    return 1;
}


errori
(1181):  error 012: invalid function call, not a valid address
(1181) : warning 215: expression has no effect
(1181) : error 001: expected token: ";", but found ")"
(1181) : error 029: invalid expression, assumed zero
(1181) : fatal error 107: too many error messages on line


red 1181

if(id(playerid) != pInfo[playerid][BizID]) return SCM(playerid, COLOR_GREY, "This isn't your biz!");


unaprijed hvala :)
Poslednja Izmena: Septembar 30, 2012, 22:03:13 POSLE PODNE od [DV]Brundo
||Web DesignerxCoder HTML,MySQL,PHP,CSS...xAdobe tools user||



Probaj ovako

if(id(playerid) != PlayerInfo[playerid][BizID]) return SCM(playerid, COLOR_GREY, "This isn't your biz!");
Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747