Jump to content
  • 0

GameMods Eroors


c0sminX

Question

error 079: inconsistent return types (array & non-array)

am vreo 26..

ma poate ajuta cineva?

27678,27679,27680 (la toate 3 imi apare eroare)

public OnPlayerCommandText(playerid, cmdtext[])

{

dcmd(specplayer,10,cmdtext);
 dcmd(specoff,7,cmdtext);
 dcmd(rset,4,cmdtext);
27699
		{
		    return ModCar(playerid);(27699)
		}
27703
		{
		   return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
		}
27712
    		ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel");
    		PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    		return 1;  (27712)
		}
	}
27721
			SetPlayerPos(playerid, 207.0807,-138.0472,1003.3125);
            SetPlayerFacingAngle(playerid, 358.1200);
			SetPlayerInterior(playerid, 3);
			GameTextForPlayer(playerid, " ~g~ Dress Shop",5000,5);
			return 1;   (27721)
	}
   
if(strcmp("/masina", cmdtext, true, 10) == 0)
	{
		ShowVehicleControlDialog(playerid);
		return 1; (linia cu problema)
	}
		vehicleidsc = GetPlayerVehicleID(playerid);
		GetVehicleDamageStatus(vehicleidsc,panels,doors,lights,tires);
		UpdateVehicleDamageStatus(vehicleidsc, panels, doors, 5, tires);
		return 1; (linia cu problema)
	}
	if (strcmp("/lightson", cmd, true) == 0)
	{
		vehicleidsc = GetPlayerVehicleID(playerid);
		GetVehicleDamageStatus(vehicleidsc,panels,doors,lights,tires);
		UpdateVehicleDamageStatus(vehicleidsc, panels, doors, 0, tires);
		return 1; (linia cu pb)
	}
	if(!strcmp(cmdtext, "/windows", true) || !strcmp(cmdtext, "/wi", true)) // By Ellis
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "  You need to login first ! ");
	            return 1; (linia cu pb)
	        }
				new carid = GetPlayerVehicleID(playerid);
				if(IsABmx(carid) || IsAPlane(carid) || IsABoat(carid) || pveh == 523  || pveh == 522 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
				{
				    SendClientMessage(playerid, COLOR_GREY, "  This vehicle doesn't have the window to roll");
				    return 1; (linia cu problema)
				}
	            if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
	            {
	            	VehicleWindows[GetPlayerVehicleID(playerid)] = 1;
	            	GetPlayerName(playerid, sendername, sizeof(sendername));
      				format(string, sizeof(string), " rolls down the window.");
      				//format(string, sizeof(string), "* %s rolls down the window.", sendername);
      				ChatColor(20.0, playerid,string);
      				//ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      				return 1; (linia cu pb)
				}
				else if(VehicleWindows[GetPlayerVehicleID(playerid)] == 1)
				{
				    VehicleWindows[GetPlayerVehicleID(playerid)] = 0;
	            	GetPlayerName(playerid, sendername, sizeof(sendername));
      				format(string, sizeof(string), " rolls up the window.");
      				//format(string, sizeof(string), "* %s rolls up the window.", sendername)
      				ChatColor(20.0, playerid,string);
      				//ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      				return 1;(linia defecta)
				return 1;
	        }
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You need to be in the vehicle to use this function !");
	            return 1; (pb)
	        }
	    }
	    return 1; (pb)
	}
	if(strcmp("/changewalkstyles", cmdtext, true) == 0)
	{
	    if(PlayerToPoint(2.0,playerid,358.8180,186.6780,1008.3828))
    	{
		    SendClientMessage(playerid, COLOR_WHITE,"Selecteaza unul din urmatoarele stiluri de mers.");
			ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Walk Styles", "Default\nNormal\nPed\nGangsta\nGangsta2\nOld\nFat Old\nFat\nLady\nLady2\nWhore\nWhore2\nDrunk", "Select", "Cancel");
			return 1; (linie cu pb)
		}
	}
	if(strcmp("/changefightstyles", cmdtext, true) == 0)
	{
	    if(PlayerToPoint(2.0,playerid,358.8534,180.7131,1008.3828))
    	{
		    SendClientMessage(playerid, COLOR_WHITE,"Selecteaza unul din urmatoarele stiluri de lupte.");
			ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Fighting Styles", "Boxing\nKungfu\nKneehead\nGrabkick\nElbow\nNormal", "Select", "Cancel");
			return 1; (linie cu pb)
		}
	}
	if(strcmp("/intrebarisiraspunsuri", cmdtext, true) == 0)
	{
		ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Intrebari si Raspunsuri", "Cum cumpar casa?\nCum cumpar un business?\nCum cumpar arme?\nCum cumpar o masina?\nCum fac Level?\nCum imi iau un Job?\nCum intru intr-o factiune?\nCum vorbesc cu playeri de la distanta?\nCum pot lua admin?\nCum fac bani?\nCum Folosesc Gps-ul?\nCum imi schimb stilul mersului?\nCum imi schimb stilul luptei?", "Select", "Cancel");
		return 1;(linie cu pb)
				ShowPlayerDialog(giveplayerid,512,DIALOG_STYLE_MSGBOX,"Achievements:\n Acme Dinamyte (12)","Congratulations, You have Achieved The 'Acme Dinamyte' Badge! \n You Won 125$","Okay","Cancel");
				GivePlayerMoney(giveplayerid,125);
				PlayerInfo[giveplayerid][pAchievement12] = 1;
			}
			return 1; (problema)
		}
		else return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai aruncat deja o petarda"); (problema)
	}
			SetTimerEx("FirerocketTime", 4000, 0, "i", playerid);
			return 1; (problema)
		}
		else return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai lansat deja artificiile gen 1."); (problema)
	}
			MoveObject(rocketsmoke[playerid], X, Y, Z+50, 15);
			SetTimerEx("FirerocketTime", 4000, 0, "i", playerid);
			return 1; (problema)
		}
		else return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai lansat deja artificiile gen 2.");
	}
error 021: symbol already defined: "OnPlayerUpdate"  ::
}

public OnPlayerUpdate(playerid)
{

La cele cu probleme am scris in paranteza

Multumesc.

Mapping, here is Quid.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.