Jump to content
  • 0

4 Erori


Luigi

Question

2 answers to this question

Recommended Posts

Mersi,nu nui pe GF,,ma poti ajuta in urmatoarele comanzi?

if(strcmp(cmd,"/startteszt", true) == 0)
		{
            new playa;
            new jatekos;
			GetPlayerName(playa, sendername, sizeof(sendername));
			playa = ReturnUser(tmp);
			jatekos = ReturnUser(tmp);
			if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
			{
				new jogsi[128];
				jogsi = strtok(cmdtext, idx);
				if(!strlen(jogsi))
				{
			    	SendClientMessage(playerid,szurke,"HASZNÃLAT - /startteszt [A,B,C,hajó,repül?][playerid]");
			    	return 1;
				}
            	if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
        		{
        			SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
        			return 1;
        		}
	            if(strcmp(jogsi,"A",true) == 0)
				{
					format(string, sizeof(string), "Elindítottad %s A kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s elindította az A kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					motorlic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"B",true) == 0)
				{
					format(string, sizeof(string), "Elindítottad %s B kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s elindította a B kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
	                PlayerInfo[playerid][pCarlic] = 1;
					return 1;
				}
	        	if(strcmp(jogsi,"C",true) == 0)
				{
					format(string, sizeof(string), "Elindítottad %s C kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s elindította a C kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
	                kamionlic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"hajó",true) == 0)
				{
					format(string, sizeof(string), "Elindítottad %s hajó tesztjét tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s elindította a hajó tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
	                hajolic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"repül?",true) == 0)
				{
					format(string, sizeof(string), "Elindítottad %s repül? tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s elindította a repül? tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
	                repulolic[playerid] = 1;
					return 1;
				}
			}
		}
        if(strcmp(cmd,"/stopteszt", true) == 0)
		{
            new playa;
            new jatekos;
			GetPlayerName(playa, sendername, sizeof(sendername));
			playa = ReturnUser(tmp);
			jatekos = ReturnUser(tmp);
			if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
			{
				new jogsi[128];
				jogsi = strtok(cmdtext, idx);
				if(!strlen(jogsi))
				{
			    	SendClientMessage(playerid,szurke,"HASZNÃLAT - /stopteszt [A,B,C,hajó,repül?][playerid]");
			    	return 1;
				}
            	if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
        		{
        			SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
        			return 1;
        		}
        		if(strcmp(jogsi,"A",true) == 0)
				{
					format(string, sizeof(string), "Leállítottad %s A kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s leállította az A kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					motorlic[playerid] = 0;
					return 1;
				}
				if(strcmp(jogsi,"B",true) == 0)
				{
					format(string, sizeof(string), "Leállítottad %s B kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s leállította az B kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					PlayerInfo[playerid][pCarlic] = 0;
					return 1;
				}
				if(strcmp(jogsi,"C",true) == 0)
				{
					format(string, sizeof(string), "Leállítottad %s C kategória tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s leállította az C kategória tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					kamionlic[playerid] = 0;
					return 1;
				}
				if(strcmp(jogsi,"hajó",true) == 0)
				{
					format(string, sizeof(string), "Leállítottad %s hajó tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s leállította a hajó tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					hajolic[playerid] = 0;
					return 1;
				}
				if(strcmp(jogsi,"repül?",true) == 0)
				{
					format(string, sizeof(string), "Leállítottad %s repül? tesztjét",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s leállította a repül? tesztedet",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					repulolic[playerid] = 0;
					return 1;
				}
			}
		}
		if(strcmp(cmd,"/jogsi",true) == 0)
		{
            new playa;
            new jatekos;
			GetPlayerName(playa, sendername, sizeof(sendername));
			playa = ReturnUser(tmp);
			jatekos = ReturnUser(tmp);
			if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
			{
				new jogsi[128];
				jogsi = strtok(cmdtext, idx);
				if(!strlen(jogsi))
				{
			    	SendClientMessage(playerid,szurke,"HASZNÃLAT - /jogsi [A,B,C,hajó,repül?][playerid]");
			    	return 1;
				}
            	if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
        		{
        			SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
        			return 1;
        		}
				if(stopteszt[playerid] == 1)
				{
				    SendClientMessage(playerid,szurke,"El?bb állítsd le a tesztjét");
				    return 1;
				}
				if(strcmp(jogsi,"A",true) == 0)
				{
					format(string, sizeof(string), "Adtál %s -nek egy A kategóriájú jogsit",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s oda adta neked a A kategóriájú jogsid",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
					format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
					ProxDetector(20.0,playerid,string,me,me,me,me,me);
					motorlic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"B",true) == 0)
				{
					format(string, sizeof(string), "Adtál %s -nek egy B kategóriájú  jogsit",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s oda adta neked a B kategóriájú jogsid",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
                    format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
					ProxDetector(20.0,playerid,string,me,me,me,me,me);
					PlayerInfo[playerid][pCarlic] = 1;
					return 1;
				}
	        	if(strcmp(jogsi,"C",true) == 0)
				{
					format(string, sizeof(string), "Adtál %s -nek egy C kategóriájú jogsit",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s oda adta neked a C kategóriájú jogsid",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
                    format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
					ProxDetector(20.0,playerid,string,me,me,me,me,me);
					kamionlic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"hajó",true) == 0)
				{
					format(string, sizeof(string), "Adtál %s -nek egy hajó jogsit",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s oda adta neked a hajó jogsit ",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
                    format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
					ProxDetector(20.0,playerid,string,me,me,me,me,me);
					hajolic[playerid] = 1;
					return 1;
				}
				if(strcmp(jogsi,"repül?",true) == 0)
				{
					format(string, sizeof(string), "Adtál %s -nek egy repül? jogsit",giveplayerid);
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
	        		format(string, sizeof(string), "%s oda adta neked a repül? jogsid",GetPlayerNameEx(playerid));
	        		SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
                    format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
					ProxDetector(20.0,playerid,string,me,me,me,me,me);
					repulolic[playerid] = 1;
					return 1;
				}
			}
		}

Nu stiu de ce nu imi functioneaza "jatekos"-ul (jatekos = giveplayerid)

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.