SA-MP Forums Archive
[HELP]Script Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Script Errors (/showthread.php?tid=604075)



[HELP]Script Errors - AlbaniaMafiaRP - 31.03.2016

Quote:

C:\Users\User\Desktop\MS-RP.pwn(719) : error 017: undefined symbol "House"
C:\Users\User\Desktop\MS-RP.pwn(720) : error 017: undefined symbol "House"
C:\Users\User\Desktop\MS-RP.pwn(734) : error 017: undefined symbol "biz"
C:\Users\User\Desktop\MS-RP.pwn(735) : error 017: undefined symbol "biz"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Quote:

stock IsHouseInArea(houseID, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y;
X = House[houseID][House_x];//719
Y = House[houseID][House_y];//720
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
return 0;
}
stock IsBusinessInArea(bizID, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y;
X = biz[bizID][bizenter_x];//734
Y = biz[bizID][bizenter_y];//735
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
return 0;
}

Can somebody help me please?


Re: [HELP]Script Errors - sheNdjze - 31.03.2016

put this in top of your gamemode:
new House;
new biz;


Re: [HELP]Script Errors - AlbaniaMafiaRP - 01.04.2016

Quote:
Originally Posted by sheNdjze
Посмотреть сообщение
put this in top of your gamemode:
new House;
new biz;
Ty Fixed it