Gangzone not showing properly
#1

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:gXminFloat:gXmaxFloat:gYminFloat:gYmax
}
new 
Gangzones[][zones_info] = {
    {
152.3455,3279.5640373.5171,2847.1582},
    {
855.9115,2442.89771025.7600,2011.4828}
};
    for(new 
0sizeof(Gangzones); ++)
    {
        
Gangzone[i][zone_id] = GangZoneCreate(Gangzones[i][gXmin], Gangzones[i][gXmax], Gangzones[i][gYmin], Gangzones[i][gYmax]);
    } 
Could someone help me out here?
Reply
#2

Parameters in the wrong order. Refer: https://sampwiki.blast.hk/wiki/GangZoneCreate
Reply
#3

No, that's not the problem. I've only labelled them wrongly in my script but the coords are in the wrong position.
Reply
#4

Nevermind, I've found the problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)