SA-MP Forums Archive
GangZone help [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 help [REP++++++] (/showthread.php?tid=532162)



GangZone help [REP++++++] - Gogeta101 - 16.08.2014

Код:
new GZ_ZONE2;
new GZ_ZONE1;

// Team 1 Team1
// Team 2 Team2

main()
{
	print("\n----------------------------------");
	print("GangZone Test);
	print("----------------------------------");
}

new PAccount[MAX_PLAYERS];//Account saved or not

enum pInfo
{
	pPass[64],
	pAdmin,
	pMoney,
	pScore,
	pTeam,
	pClass,
}
new Player[MAX_PLAYERS][pInfo];

public OnGameModeInit()
{



	GZ_ZONE1 = GangZoneCreate(-343,75,2582,03125,-140,625,2824,21875);
	GangZoneShowForAll(GZ_ZONE1, 0x0080FF96);

	GZ_ZONE2 = GangZoneCreate(-359,375,988,28125,78,125,1226,5625);
	GangZoneShowForAll(GZ_ZONE2, 0xFF000096);
I get those errors

Quote:

C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(46) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(46) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(46) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(46) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(49) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(49) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(49) : warning 202: number of arguments does not match definition
C:\Users\CC\Desktop\Server\test\gamemodes\satdm.pw n(49) : warning 202: number of arguments does not match definition




Re: GangZone help [REP++++++] - MarkoN - 16.08.2014

Код:
GZ_ZONE1 = GangZoneCreate(-343.75,2582.03125,-140.625,2824.21875);
GZ_ZONE2 = GangZoneCreate(-359.375,988.28125,78.125,1226.5625);
the problem is in the commas ',' coordinates use the punctuation mark '.' SO -343,75, some ther coord - bad. -343.75, some other coord - good.


Re: GangZone help [REP++++++] - Gogeta101 - 16.08.2014

No warnings or errors i will test it now thanks reped +


Re: GangZone help [REP++++++] - Gogeta101 - 16.08.2014

They are not appearing on map where should i put GangZoneShowForAll on player spawn or idk ?


Re: GangZone help [REP++++++] - MarkoN - 16.08.2014

Quote:
Originally Posted by Gogeta101
Посмотреть сообщение
They are not appearing on map where should i put GangZoneShowForAll on player spawn or idk ?
put GangZoneShowForPlayer in OnPlayerSpawn


Re: GangZone help [REP++++++] - Gogeta101 - 16.08.2014

Worked thanks


Re: GangZone help [REP++++++] - davve95 - 16.08.2014

Quote:
Originally Posted by MarkoN
Посмотреть сообщение
Код:
GZ_ZONE1 = GangZoneCreate(-343.75,2582.03125,-140.625,2824.21875);
GZ_ZONE2 = GangZoneCreate(-359.375,988.28125,78.125,1226.5625);
the problem is in the commas ',' coordinates use the punctuation mark '.' SO -343,75, some ther coord - bad. -343.75, some other coord - good.
Are they just bad if it starts with a comma in the beginning?.
Or how do you know it they're bad or not?.

I'm using a program that creating my gang zones.
I think it's named Extreme vehicle plotter if I remember right...

That will give me a error that says it's wrong with the coordinates. I guess it's has to do with that thing you posted.

Cheers.


Re: GangZone help [REP++++++] - Gogeta101 - 16.08.2014

Quote:
Originally Posted by davve95
Посмотреть сообщение
Are they just bad if it starts with a comma in the beginning?.

I'm using a program that creating my gang zones.
I think it's named Extreme vehicle plotter if I remember right...

That will give me a error that says it's wrong with coordinates. I guess it's has to do with that thing you posted.

Cheers.
Cheers REP +