Gangzone not showing properly - 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: Gangzone not showing properly (
/showthread.php?tid=575586)
Gangzone not showing properly -
PizzaPuntjes - 28.05.2015
Hello, I'm trying to add gangzones to my gamemode but they aren't showing properly, everytime I change the direction of my screen the gangzone changes/duplicates too;
I have two gangzones and this happens to both of them.
PHP Code:
enum zones_info
{
Float:gXmin, Float:gXmax, Float:gYmin, Float:gYmax
}
new Gangzones[][zones_info] = {
{152.3455,3279.5640, 373.5171,2847.1582},
{855.9115,2442.8977, 1025.7600,2011.4828}
};
for(new i = 0; i < sizeof(Gangzones); i ++)
{
Gangzone[i][zone_id] = GangZoneCreate(Gangzones[i][gXmin], Gangzones[i][gXmax], Gangzones[i][gYmin], Gangzones[i][gYmax]);
}
Could someone help me out here?
Re: Gangzone not showing properly -
Vince - 28.05.2015
Parameters in the wrong order. Refer:
https://sampwiki.blast.hk/wiki/GangZoneCreate
Re: Gangzone not showing properly -
PizzaPuntjes - 28.05.2015
No, that's not the problem. I've only labelled them wrongly in my script but the coords are in the wrong position.
Re: Gangzone not showing properly -
PizzaPuntjes - 28.05.2015
Nevermind, I've found the problem.