pls help with error messages
#1

pls help guys, idk why errors here :/

Код:
new ArNaujas[MAX_PLAYERS], slapt[128];
Код:
if(dialogid==1){
		if(response){
			new file[128], name[128];
			GetPlayerName(pid, name, 128);
			format(file, 128, "%s.txt", name);
			dini_Create(file);
			format(slapt, 128, "%s", inputtext);
			ArNaujas[pid]=1;
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			SendClientMessage(pid, -1, "");
			ShowPlayerDialog(pid, 10, DIALOG_STYLE_MSGBOX, "LYTIES PASIRINKIMAS", "{FFFFFF}Pasirinkite lytį apačioje !", "Vyras", "Moteris");}
		if(!response){
			Kick(pid);}
		return 1;}
Код:
if(dialogid==2){
		if(response){
			new name[vard], file[128];
			GetPlayerName(pid, name, sizeof(name));
			format(file, sizeof(file), "%s.txt", name);
			if(ArNaujas[pid]==1){ //367
				if(slapt==inputtext){
					dini_IntSet(file, "slaptazodis", slapt);}
				else{ Kick(pid), dini_Remove(file); }}
			else{
			if(CheckPass(file, inputtext)){
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				SendClientMessage(pid, -1, "");
				TogglePlayerSpectating(pid, 0);
				SpawnPlayer(pid);
				SendClientMessage(pid, -1, "{CC6600}Sekmingai prisijungei į {009900}Feel-Action.lt {CC6600}serverį !");}
			if(!CheckPass(file, inputtext)){
				Kick(pid);}}
			return 1;}}
Error messages :
Код:
D:\PAWN\def SampSV 0.3z+rar\GM\pawno\include\server\connect2.inc(367) : error 033: array must be indexed (variable "slapt")
D:\PAWN\def SampSV 0.3z+rar\GM\pawno\include\server\connect2.inc(368) : error 035: argument type mismatch (argument 3)
#define pid playerid
Reply


Messages In This Thread
pls help with error messages - by lollypap54 - 31.01.2015, 12:56
Re: pls help with error messages - by nezo2001 - 31.01.2015, 12:59
Re: pls help with error messages - by lollypap54 - 31.01.2015, 13:16
Re: pls help with error messages - by M4D - 31.01.2015, 13:19
Re: pls help with error messages - by CalvinC - 31.01.2015, 13:25
Re: pls help with error messages - by lollypap54 - 31.01.2015, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)