SA-MP Forums Archive
GangZoneCreate problem.. - 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: GangZoneCreate problem.. (/showthread.php?tid=520608)



GangZoneCreate problem.. - TonyII - 19.06.2014

Hey, so the problem is that it won't create the gangzone directly after it loads.

So the 3DTextLabel loads fine, however the gangzone won't show up. Thanks in advance.
Codes:

pawn Код:
//OnGameModeInit
for(new i = 0; i < sizeof(TurfInfo); i++)
    {
        new string[128];
        format(string,sizeof(string),TURF_PATH,i);
        INI_ParseFile(string,"loadturf_%s", .bExtra = true, .extra = i);
        LoadTurf(i);
    }

//
stock LoadTurf(turfid)
{
    new string[128];
    format(string, sizeof(string), "%s\n{FFFF00}/capture\nTID: %d",TurfInfo[turfid][tText],turfid);
    TurfInfo[turfid][tTextID] = CreateDynamic3DTextLabel(string,COLOR_WHITE,TurfInfo[turfid][tX],TurfInfo[turfid][tY],TurfInfo[turfid][tZ]+0.2,10.0);
    TurfInfo[turfid][tTurf] = GangZoneCreate(TurfInfo[turfid][tW],TurfInfo[turfid][tS],TurfInfo[turfid][tE],TurfInfo[turfid][tN]);
    GangZoneShowForAll(TurfInfo[turfid][tTurf],COLOR_BLUE);
    return 1;
}



Re : GangZoneCreate problem.. - MCZOFT - 20.06.2014

where is your Create3DTextLabel ??, give it to us to see what's the problem with it ..