GangZone BUG [REP++] - 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 BUG [REP++] (
/showthread.php?tid=642489)
GangZone BUG [REP++] -
buburuzu19 - 01.10.2017
I have something like this:
pawn Код:
new gangturf1;
new gangturf2;
In a timer i do something like this because i need to resize both turfs:
pawn Код:
public Timer()
{
DestroyGangZone(gangturf1);
DestroyGangZone(gangturf2);
gangturf1 = GangZoneCreate(...);
gangturf2 = GangZoneCreate(...);
return 1;
}
When i print out the IDs of gangturf1 and gangturf2 they're both 0. Why the frcking hell is this happening?
Re: GangZone BUG [REP++] -
kAn3 - 01.10.2017
You did not post your print line.
Re: GangZone BUG [REP++] -
buburuzu19 - 01.10.2017
Quote:
Originally Posted by kAn3
You did not post your print line.
|
format (msg,10,"%d-%d",gangturf1,gangturf2);
SendClientMessage (playerid,-1,msg);
The problem is not here, the problem is the id returned by GangZoneCreate.