23.03.2013, 12:37
Hello im not really new scripter but im not so god .. if i can have help with bussiness system here are errors
And here are some lines where is error
Thanx
Код:
D:\Documents and Settings\Dzana\Desktop\biz.pwn(282) : error 029: invalid expression, assumed zero D:\Documents and Settings\Dzana\Desktop\biz.pwn(282) : warning 215: expression has no effect D:\Documents and Settings\Dzana\Desktop\biz.pwn(282) : error 029: invalid expression, assumed zero D:\Documents and Settings\Dzana\Desktop\biz.pwn(282) : error 029: invalid expression, assumed zero D:\Documents and Settings\Dzana\Desktop\biz.pwn(282) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
;public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
new string[256];
new BusinessInfo[200];
for(new b = 1;b < sizeof(BusinessInfo);b++)
{
if(pickupid == [BusinessInfo;][b;][bOutsideIcon;]) //this line has errors ..
{
if(BusinessInfo[b][bOwned] == 0)
{
format(string, sizeof(string), "~g~Name:~w~%s~n~~w~This business is ~g~for sale!~n~~r~Price:~g~%i~n~BizType:~w~%s~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bPrice], BusinessType(b), b);
GameTextForPlayer(playerid, string, 3000, 3);
}
if(BusinessInfo[b][bOwned] == 1)
{
format(string, sizeof(string), "~g~Name:~w~%s~n~~g~Owner:~w~%s~n~~g~BizType:~w~%s ~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bOwner], BusinessType(b), b);
GameTextForPlayer(playerid, string, 3000, 3);
}
}
}
return 1;
}

