Jump to content
  • 0

Problemă /turfs


S1meD.

Question

Problema intalnita (descriere):Ei bine am editat culorile unei facțiuni dar nu știu de ce nu sa pus culoarea la teritorii.
Ero(area / rile) / warning-(ul / urile):Nu am erori sau Warning-uri.
Liniile de cod / sursa / script-ul(obligatoriu):o voi pune puțin mai jos
Imagini / Video (optional):http://imgur.com/pjFjBmP
Ati incercat sa rezolvati singur?:Da, dar nu a mers.

CMD:turfs(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
	if(TurfsDisp[playerid] == 0)
	{
		TurfsDisp[playerid] = 1;
		for(new i = 1; i < sizeof(Turfs); i++)
 		{
			if(TurfInfo[zOwned] == 0)
			{
				GangZoneShowForPlayer(playerid, Turfs, 0xFFFFFFAA); //None
			}
			if(TurfInfo[zOwned] == 4)
			{
				GangZoneShowForPlayer(playerid, Turfs, 0x008040C8); //Grove Street
			}
			if(TurfInfo[zOwned] == 5)
			{
				GangZoneShowForPlayer(playerid, Turfs, 0xDB990099); //Mexican Family
			}
			if(TurfInfo[zOwned] == 6)
			{
				GangZoneShowForPlayer(playerid, Turfs, 0x253529); // Corleone Family
			}
			if(TurfInfo[zOwned] == 10)
			{
				GangZoneShowForPlayer(playerid, Turfs, 0x87218799); //The Ballas
			}
		}
		ArataLinii(playerid);
	}
	else
	{
		TurfsDisp[playerid] = 0;
		AscundeLinii(playerid);
		for(new i = 1; i < sizeof(Turfs); i++)
		{
			GangZoneHideForPlayer(playerid, Turfs);
		}
	}
	return 1;
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Inlocuieste secventa de mai jos cu ce ti-am dat eu

 

if(TurfInfo[i][zOwned] == 6)
            {
                GangZoneShowForPlayer(playerid, Turfs[i], 0x25352999); // Corleone Family
            }

 

acel 99 reprezinta transparenta teritoriului.

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.