strfind inputtext
#7

Код HTML:
if(dialogid == DIALOG_ADUTY)
	{
		if(!response) return 1;
		if(response)
		{
			if(strcmp(inputtext, PI[playerid][pKod]) != -1)
			{
				new string[128];
				SetPlayerArmour(playerid, 100.0);
				g_SetPlayerHealth(playerid, 100.0);
				SetPlayerColor(playerid,AZUTA);
				format(string, sizeof(string), ""CRVENA"AG-AC | "BELA"Admin "HZELENA"%s "BELA"je na duznosti! (Admin Level %d)", GetName(playerid), PI[playerid][pAdmin]);
				AdminGameMaster(-1, string);
				AdminDuty[playerid] = 1;
			}
			else
			{
				SCM(playerid, -1, ""CRVENA"AG-AC | "BELA"Pogresili ste kod, kikovani ste!");
				freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
			}
		}
	}
I make it like this, but it still says that admin code is wrong and kicks me out, code is 942 ( every player have one in .ini )
Reply


Messages In This Thread
strfind inputtext - by maksicnm - 08.01.2018, 19:26
Re: strfind inputtext - by MEW273 - 08.01.2018, 19:35
Re: strfind inputtext - by Misiur - 08.01.2018, 19:36
Re: strfind inputtext - by maksicnm - 08.01.2018, 19:41
Re: strfind inputtext - by MEW273 - 08.01.2018, 19:50
Re: strfind inputtext - by Misiur - 08.01.2018, 19:52
Re: strfind inputtext - by maksicnm - 08.01.2018, 19:57
Re: strfind inputtext - by MEW273 - 08.01.2018, 20:02
Re: strfind inputtext - by Misiur - 08.01.2018, 20:03
Re: strfind inputtext - by maksicnm - 08.01.2018, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)