Jump to content
  • 0

pomoc Admin chat


kubop

Dotaz

Cus spravil som si admin chat (trochu som si pomohol z rze8 xD) a vyzera to nejak takto:

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)
{
	new string[256];
	strmid(string, cmdtext, 2, strlen(cmdtext), 256);
	format(string, 256, "[ AdminChat ] %s: %s", Meno(playerid), string);
	for(new i = 0; i < 70; i++)
	{
		if(Admin[i] >= 1)
		{
			SendClientMessage(i, 0x7FFF00AA, string);
		}
	}
	return 1;
}

Hadze to error

ZombieInvasion.pwn(373) : error 033: array must be indexed (variable "cmdtext")

a riadok 373

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)

Potreboval by som to spravit abi to slo ked napisem "// [text]" ale je to nejak blbo..

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0
Cus spravil som si admin chat (trochu som si pomohol z rze8 xD) a vyzera to nejak takto:

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)
{
	new string[256];
	strmid(string, cmdtext, 2, strlen(cmdtext), 256);
	format(string, 256, "[ AdminChat ] %s: %s", Meno(playerid), string);
	for(new i = 0; i < 70; i++)
	{
		if(Admin[i] >= 1)
		{
			SendClientMessage(i, 0x7FFF00AA, string);
		}
	}
	return 1;
}

Hadze to error

ZombieInvasion.pwn(373) : error 033: array must be indexed (variable "cmdtext")

a riadok 373

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)

Potreboval by som to spravit abi to slo ked napisem "// [text]" ale je to nejak blbo..

Ok Tak My Napiš na skype A pomůžu Ti Ok? MOJ SKYPE stream_sd

 

Milujem Pawno.Cz

 

Link to comment
Share on other sites

  • 0
Cus spravil som si admin chat (trochu som si pomohol z rze8 xD) a vyzera to nejak takto:

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)
{
	new string[256];
	strmid(string, cmdtext, 2, strlen(cmdtext), 256);
	format(string, 256, "[ AdminChat ] %s: %s", Meno(playerid), string);
	for(new i = 0; i < 70; i++)
	{
		if(Admin[i] >= 1)
		{
			SendClientMessage(i, 0x7FFF00AA, string);
		}
	}
	return 1;
}

Hadze to error

ZombieInvasion.pwn(373) : error 033: array must be indexed (variable "cmdtext")

a riadok 373

if(cmdtext + 4 == 47 && Admin[playerid] >= 1)

Potreboval by som to spravit abi to slo ked napisem "// [text]" ale je to nejak blbo..

jak si muzes pomoct s rze8 kdyz mas jenom amx a je tam este deamx pochybuji ze si dokazes tu deamx ochranu smazat :d

 

jinak

if(cmdtext[1] == "/" && Admin[playerid] >= 1)

pokud je druhy znak prikazu roven /

coz znamena ze prvni je automaticky / druhy musi byt / tak ti vznikne // a na zbytku uz nezalezi

Link to comment
Share on other sites

  • 0
Omg len hovorim ze umna rze8 ziadnu deamx nema.. A ziadny zazrak

A myslim ze uz prva rze mala anti deamx a nie az 7

je mozne ze to ten kdo to zprovoznoval smazal.. nejspis ano aby pomoc ideamx zjistil co ma vsecko domazat

jinak ochraa je tam az od rze7 a az potom sem je narval do vsech :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...