SA-MP Forums Archive
Stats in dialog [Help] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Stats in dialog [Help] (/showthread.php?tid=199548)



Stats in dialog [Help] - Ivan_Pantovic - 15.12.2010

Hello, I want to make /stats on my server to work in dialog, but i'm new with dialogs
Here's the showstats function :
Код:
forward ShowStats(playerid,targetid,type);
public ShowStats(playerid,targetid,type)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
		new cash =  GetPlayerPCash(targetid);
		new fam = PlayerInfo[targetid][pMember];
		
		new atext[128];
		switch (PlayerInfo[targetid][pSex])
	    {
            case 1:
		    {
		        atext = "Male";
		    }
		    case 2:
		    {
		        atext = "Female";
		    }
		}

	    new ftext[128];
	    if(PlayerInfo[targetid][pMember] == 7)
		{ ftext = "Los Santos Police Department"; }
        else if(PlayerInfo[targetid][pMember] == 2)
		{ ftext = "FBI Agency"; }
        else if(PlayerInfo[targetid][pMember] == 3)
		{ ftext = "Goverment"; }
		else if(PlayerInfo[targetid][pMember] == 4)
		{ ftext = "Los Santos Emergency Rescue"; }
		else if(PlayerInfo[targetid][pMember] == 5)
		{ ftext = "San News"; }
		else if(PlayerInfo[targetid][pMember] == 6)
		{ ftext = "Target FM Radio 98.6"; }
  		else if(PlayerInfo[targetid][pMember] >= 8)
		{ ftext = FamilyInfo[fam][FamilyName]; }
		else
		{ ftext = "None"; }
		
	    new rtext[128];
	    if(PlayerInfo[targetid][pMember] == 7)
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
	            case 0: { rtext = "Cadet"; }
                case 1: { rtext = "Police Officer I "; }
                case 2: { rtext = "Police Officer II"; }
			    case 3: { rtext = "Senior Lead Officer"; }
			    case 4: { rtext = "Sergeant I"; }
			    case 5: { rtext = "Sergeant II"; }
			    case 6: { rtext = "Lieutenant"; }
	            case 7: { rtext = "Captain"; }
	            case 8: { rtext = "Commander"; }
	            case 9: { rtext = "Deputy Chief"; }
	            case 10: { rtext = "Assistant Chief"; }
			    case 11: { rtext = "Chief of Police"; }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 2)//FBI Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Professional Staff";
		        }
		        case 2:
		        {
		            rtext = "Special Agent Trainee";
		        }
		        case 3:
		        {
		            rtext = "Special Agent";
		        }
		        case 4:
		        {
		            rtext = "Special Agent in Charge";
		        }
		        case 5:
		        {
		            rtext = "Assistant Director in Charge";
		        }
		        case 6:
		        {
		            rtext = "Director";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 3)//Goverment
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Guard";
		        }
		        case 2:
		        {
		            rtext = "Body Guard";
		        }
		        case 3:
		        {
		            rtext = "Driver";
		        }
		        case 4:
		        {
		            rtext = "Secretary";
		        }
		        case 5:
		        {
		            rtext = "Assistant";
		        }
		        case 6:
		        {
		            rtext = "Mayor";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 4)//Los Santos Paramedic Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Trainee";
		        }
		        case 2:
		        {
		            rtext = "EMT";
		        }
		        case 3:
		        {
		            rtext = "Firefighter";
		        }
		        case 4:
		        {
		            rtext = "Paramedic";
		        }
		        case 5:
		        {
		            rtext = "Fire/Medic";
		        }
		        case 6:
		        {
		            rtext = "Doctor";
		        }
		        case 7:
		        {
		            rtext = "Assistant Supervisor";
		        }
		        case 8:
		        {
		            rtext = "Assistant Captain";
		        }
		        case 9:
		        {
		            rtext = "Supervisor of EMS";
		        }
		        case 10:
		        {
		            rtext = "Fire Captain";
		        }
		        case 11:
		        {
		            rtext = "Deputy Cheif";
		        }
		        case 12:
		        {
		            rtext = "Chief of LSES";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 5)//San News Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Intern";
		        }
		        case 2:
		        {
		            rtext = "Local Reporter";
		        }
		        case 3:
		        {
		            rtext = "Local Editor";
		        }
		        case 4:
		        {
		            rtext = "Network Anchor";
		        }
		        case 5:
		        {
		            rtext = "Network Editor";
		        }
		        case 6:
		        {
		            rtext = "Network Producer";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 6)//TFMR Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "TFMR Trainee";
		        }
		        case 2:
		        {
		            rtext = "Gangsta";
		        }
		        case 3:
		        {
		            rtext = "Hoodlum";
		        }
		        case 4:
		        {
		            rtext = "MC";
		        }
		        case 5:
		        {
		            rtext = "DJ";
		        }
		        case 6:
		        {
		            rtext = "TFMR CEO";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] >= 8) // Open Faction Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = FamilyInfo[fam][FamilyRank1];
		        }
		        case 2:
		        {
		            rtext = FamilyInfo[fam][FamilyRank2];
		        }
		        case 3:
		        {
		            rtext = FamilyInfo[fam][FamilyRank3];
		        }
		        case 4:
		        {
		            rtext = FamilyInfo[fam][FamilyRank4];
		        }
		        case 5:
		        {
		            rtext = FamilyInfo[fam][FamilyRank5];
		        }
		        case 6:
		        {
		            rtext = FamilyInfo[fam][FamilyRank6];
		        }
		    }
		}
		else
		{
		    rtext = "None";
		}
		
        new jtext[128];
        switch (PlayerInfo[targetid][pJob])
	    {
            case 0: { jtext = "None"; }
            case 1: { jtext = "Detective"; }
            case 2: { jtext = "Not available Job"; }
            case 3: { jtext = "Whore"; }
            case 5: { jtext = "Car Jacker"; }
            case 6: { jtext = "News Reporter"; }
            case 7: { jtext = "Car Mechanic"; }
            case 8: { jtext = "Bodyguard"; }
            case 9: { jtext = "Arms Dealer"; }
            case 10: { jtext = "Car Dealer"; }
		    case 12: { jtext = "Boxer"; }
            case 14: { jtext = "Bus Driver"; }
            case 15: { jtext = "Paper Boy"; }
            case 16: { jtext = "Garbage Man"; }
            case 17: { jtext = "Pizza Boy"; }
            case 18: { jtext = "Farmer"; }
            case 19: { jtext = "Illegal Farmer"; }
            case 20: { jtext = "Drugs Smuggler"; }
            case 21: { jtext = "Street sweeper"; }
            case 22: { jtext = "Materials smuggler"; }
            case 25: { jtext = "Smuggler"; }
            case 26: { jtext = "MailMan"; }
		}
        
		new drank[128];
		switch (PlayerInfo[targetid][pDonateRank])
	    {
            case 0:
		    {
		        drank = "None";
		    }
		    case 1:
		    {
		        drank = "Bronze Donator";
		    }
		    case 2:
		    {
		        drank = "Silver Donator";
		    }
		    case 3:
		    {
		        drank = "Golden Donator";
		    }
		}

		new married[128];
		strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
		
		new age = PlayerInfo[targetid][pAge];
		new account = PlayerInfo[targetid][pAccount];
		new ptime = PlayerInfo[targetid][pConnectTime];
		new adminlevel = PlayerInfo[targetid][pAdmin];
		if(adminlevel == 11) { adminlevel = 0; }
		new pnumber = PlayerInfo[targetid][pPnumber];
		new numtime = PlayerInfo[targetid][pCelltime];
		new drugs = PlayerInfo[targetid][pDrugs];
		new mats = PlayerInfo[targetid][pMats];
		new carkey = PlayerInfo[targetid][pCarkey];
		new carkey2 = PlayerInfo[targetid][pCarkey2];
		new carkey3 = PlayerInfo[targetid][pCarkey3];
		new rank = PlayerInfo[targetid][pRank];
		new intir = GetPlayerInterior(targetid);
		new virworld = GetPlayerVirtualWorld(targetid);
		new local = PlayerInfo[targetid][pLocal];
		new housekey = PlayerInfo[targetid][pHousekey];
		new bizkey = PlayerInfo[targetid][pPbiskey];
		new crimes = PlayerInfo[targetid][pCrimes];
		new arrests = PlayerInfo[targetid][pArrested];
		new freq = PlayerInfo[targetid][pWalkieFreq];
		new cpu = PlayerInfo[targetid][pLaptopCPU];
		new ram = PlayerInfo[targetid][pLaptopRAM];
		new space = PlayerInfo[targetid][pLaptopHardDisc];
		new netup = PlayerInfo[targetid][pLaptopUpSpeed];
		new netdown = PlayerInfo[targetid][pLaptopDownSpeed];

		new name[MAX_PLAYER_NAME];
		GetPlayerName(targetid, name, sizeof(name));
	    GiveNameSpace(name);
		new coordsstring[128];
		format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);
		SendClientMessage(playerid, COLOR_YELLOW5,coordsstring);
		
		if(type == 0)
		{
		format(coordsstring, sizeof(coordsstring), "[Account]: PlayingHours:[%d] DonateRank:[%s] Age:[%d] Cash:[$%d] Bank:[$%d]", ptime,drank,age,cash, account);
		SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		format(coordsstring, sizeof(coordsstring), "[General]: AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]",adminlevel,jtext,freq);
		SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]", crimes,arrests);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if(PlayerInfo[targetid][pCellphone] == 0)//playerid
		{
            format(coordsstring, sizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]",drugs,mats,atext,married);
            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
        }
        else if(PlayerInfo[targetid][pCellphone] == 1)//playerid
		{
            format(coordsstring, sizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] Phtime:[%d]",drugs,mats,atext,married,pnumber,numtime);
            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
        }
        if(PlayerInfo[targetid][pLaptopCPU] != 0)
		{
			format(coordsstring, sizeof(coordsstring), "[LAPTOP]: CPU:[%dGHZ] RAM:[%dMB] HardDisc:[%dGB] Upload:[%dMBPS] Download:[%dMBPS]", cpu,ram,space,netup,netdown);
			SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
        if(PlayerInfo[targetid][pMember] <= 7)
		{
		    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		else if(PlayerInfo[targetid][pMember] >= 8)
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 0:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 1:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 2:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 3:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 4:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 5:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 6:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		    }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[Property]: Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d]",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 1| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock],CarInfo[carkey][cImpounded],CarInfo[carkey][cImpoundedPrice],CarInfo[carkey][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 2| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpounded],CarInfo[carkey2][cImpoundedPrice],CarInfo[carkey2][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 3| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpounded],CarInfo[carkey3][cImpoundedPrice],CarInfo[carkey3][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring, sizeof(coordsstring), "[Admin]: House key [%d] Business key [%d] Veh1[%d](ID:%d) Veh2[%d](ID:%d) Veh3[%d](ID:%d) HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,ForwardOwnCarID(1,targetid),carkey2,ForwardOwnCarID(2,targetid),carkey3,ForwardOwnCarID(3,targetid),PlayerInfo2[HireCar][targetid],intir,virworld,local);
			SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		}
		else
		{
		format(coordsstring, sizeof(coordsstring), "[Account]: Age:[%d] Sex:[%s] Job:[%s] Bank:[$%d]", age,atext,jtext,account);
		SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		if(PlayerInfo[playerid][pCellphone] == 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[General]: WalkieFreq:[%d] MarriedTo:[%s]",freq,married);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		else if(PlayerInfo[playerid][pCellphone] == 1)
		{
		    format(coordsstring, sizeof(coordsstring), "[General]: WalkieFreq:[%d] MarriedTo:[%s] Ph:[%d] Phonetime:[%d]",freq,married,pnumber,numtime);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]", crimes,arrests);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
        format(coordsstring, sizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] DonateRank:[%s] Time-In-LS:[%d]",drugs,mats,drank,ptime);
        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
        if(PlayerInfo[targetid][pMember] <= 7)
		{
		    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		else if(PlayerInfo[targetid][pMember] >= 8)
		{
            switch (PlayerInfo[targetid][pRank])
	        {
                case 0:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 1:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 2:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 3:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 4:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 5:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		        case 6:
		        {
		            format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		        }
		    }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[Property]: Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d]",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 1| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cLock],CarInfo[carkey][cImpoundedPrice],CarInfo[carkey][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 2| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpoundedPrice],CarInfo[carkey2][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(coordsstring), "[Vehicle]: 3| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpoundedPrice],CarInfo[carkey3][cInsur]);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring, sizeof(coordsstring), "[Admin]: House key [%d] Business key [%d] Veh1[%d](ID:%d) Veh2[%d](ID:%d) Veh3[%d](ID:%d) HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,ForwardOwnCarID(1,targetid),carkey2,ForwardOwnCarID(2,targetid),carkey3,ForwardOwnCarID(3,targetid),PlayerInfo2[HireCar][targetid],intir,virworld,local);
			SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		}
		SendClientMessage(playerid, COLOR_YELLOW5,"___________________________________________________________");
	}
}
I tried to make it like this :
Код:
forward ShowStatsInDialog(playerid,targetid,type);
public ShowStatsInDialog(playerid,targetid,type)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
		new cash =  GetPlayerPCash(targetid);
		new fam = PlayerInfo[targetid][pMember];

		new atext[128];
		switch (PlayerInfo[targetid][pSex])
	    {
            case 1:
		    {
		        atext = "Male";
		    }
		    case 2:
		    {
		        atext = "Female";
		    }
		}

	    new ftext[128];
	    if(PlayerInfo[targetid][pMember] == 7)
		{ ftext = "Los Santos Police Department"; }
        else if(PlayerInfo[targetid][pMember] == 2)
		{ ftext = "FBI Agency"; }
        else if(PlayerInfo[targetid][pMember] == 3)
		{ ftext = "Goverment"; }
		else if(PlayerInfo[targetid][pMember] == 4)
		{ ftext = "Los Santos Emergency Rescue"; }
		else if(PlayerInfo[targetid][pMember] == 5)
		{ ftext = "San News"; }
		else if(PlayerInfo[targetid][pMember] == 6)
		{ ftext = "Target FM Radio 98.6"; }
  		else if(PlayerInfo[targetid][pMember] >= 8)
		{ ftext = FamilyInfo[fam][FamilyName]; }
		else
		{ ftext = "None"; }

	    new rtext[128];
	    if(PlayerInfo[targetid][pMember] == 7)
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
	            case 0: { rtext = "Cadet"; }
                case 1: { rtext = "Police Officer I "; }
                case 2: { rtext = "Police Officer II"; }
			    case 3: { rtext = "Senior Lead Officer"; }
			    case 4: { rtext = "Sergeant I"; }
			    case 5: { rtext = "Sergeant II"; }
			    case 6: { rtext = "Lieutenant"; }
	            case 7: { rtext = "Captain"; }
	            case 8: { rtext = "Commander"; }
	            case 9: { rtext = "Deputy Chief"; }
	            case 10: { rtext = "Assistant Chief"; }
			    case 11: { rtext = "Chief of Police"; }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 2)//FBI Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Professional Staff";
		        }
		        case 2:
		        {
		            rtext = "Special Agent Trainee";
		        }
		        case 3:
		        {
		            rtext = "Special Agent";
		        }
		        case 4:
		        {
		            rtext = "Special Agent in Charge";
		        }
		        case 5:
		        {
		            rtext = "Assistant Director in Charge";
		        }
		        case 6:
		        {
		            rtext = "Director";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 3)//Goverment
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Guard";
		        }
		        case 2:
		        {
		            rtext = "Body Guard";
		        }
		        case 3:
		        {
		            rtext = "Driver";
		        }
		        case 4:
		        {
		            rtext = "Secretary";
		        }
		        case 5:
		        {
		            rtext = "Assistant";
		        }
		        case 6:
		        {
		            rtext = "Mayor";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 4)//Los Santos Paramedic Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Trainee";
		        }
		        case 2:
		        {
		            rtext = "EMT";
		        }
		        case 3:
		        {
		            rtext = "Firefighter";
		        }
		        case 4:
		        {
		            rtext = "Paramedic";
		        }
		        case 5:
		        {
		            rtext = "Fire/Medic";
		        }
		        case 6:
		        {
		            rtext = "Doctor";
		        }
		        case 7:
		        {
		            rtext = "Assistant Supervisor";
		        }
		        case 8:
		        {
		            rtext = "Assistant Captain";
		        }
		        case 9:
		        {
		            rtext = "Supervisor of EMS";
		        }
		        case 10:
		        {
		            rtext = "Fire Captain";
		        }
		        case 11:
		        {
		            rtext = "Deputy Cheif";
		        }
		        case 12:
		        {
		            rtext = "Chief of LSES";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 5)//San News Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "Intern";
		        }
		        case 2:
		        {
		            rtext = "Local Reporter";
		        }
		        case 3:
		        {
		            rtext = "Local Editor";
		        }
		        case 4:
		        {
		            rtext = "Network Anchor";
		        }
		        case 5:
		        {
		            rtext = "Network Editor";
		        }
		        case 6:
		        {
		            rtext = "Network Producer";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] == 6)//TFMR Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = "TFMR Trainee";
		        }
		        case 2:
		        {
		            rtext = "Gangsta";
		        }
		        case 3:
		        {
		            rtext = "Hoodlum";
		        }
		        case 4:
		        {
		            rtext = "MC";
		        }
		        case 5:
		        {
		            rtext = "DJ";
		        }
		        case 6:
		        {
		            rtext = "TFMR CEO";
		        }
		    }
		}
		else if(PlayerInfo[targetid][pMember] >= 8) // Open Faction Ranks
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 1:
		        {
		            rtext = FamilyInfo[fam][FamilyRank1];
		        }
		        case 2:
		        {
		            rtext = FamilyInfo[fam][FamilyRank2];
		        }
		        case 3:
		        {
		            rtext = FamilyInfo[fam][FamilyRank3];
		        }
		        case 4:
		        {
		            rtext = FamilyInfo[fam][FamilyRank4];
		        }
		        case 5:
		        {
		            rtext = FamilyInfo[fam][FamilyRank5];
		        }
		        case 6:
		        {
		            rtext = FamilyInfo[fam][FamilyRank6];
		        }
		    }
		}
		else
		{
		    rtext = "None";
		}

        new jtext[128];
        switch (PlayerInfo[targetid][pJob])
	    {
            case 0: { jtext = "None"; }
            case 1: { jtext = "Detective"; }
            case 2: { jtext = "Not available Job"; }
            case 3: { jtext = "Whore"; }
            case 5: { jtext = "Car Jacker"; }
            case 6: { jtext = "News Reporter"; }
            case 7: { jtext = "Car Mechanic"; }
            case 8: { jtext = "Bodyguard"; }
            case 9: { jtext = "Arms Dealer"; }
            case 10: { jtext = "Car Dealer"; }
		    case 12: { jtext = "Boxer"; }
            case 14: { jtext = "Bus Driver"; }
            case 15: { jtext = "Paper Boy"; }
            case 16: { jtext = "Garbage Man"; }
            case 17: { jtext = "Pizza Boy"; }
            case 18: { jtext = "Farmer"; }
            case 19: { jtext = "Illegal Farmer"; }
            case 20: { jtext = "Drugs Smuggler"; }
            case 21: { jtext = "Street sweeper"; }
            case 22: { jtext = "Materials smuggler"; }
            case 25: { jtext = "Smuggler"; }
            case 26: { jtext = "MailMan"; }
		}

		new drank[128];
		switch (PlayerInfo[targetid][pDonateRank])
	    {
            case 0:
		    {
		        drank = "None";
		    }
		    case 1:
		    {
		        drank = "Bronze Donator";
		    }
		    case 2:
		    {
		        drank = "Silver Donator";
		    }
		    case 3:
		    {
		        drank = "Golden Donator";
		    }
		}

		new married[128];
		strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);

		new age = PlayerInfo[targetid][pAge];
		new account = PlayerInfo[targetid][pAccount];
		new ptime = PlayerInfo[targetid][pConnectTime];
		new adminlevel = PlayerInfo[targetid][pAdmin];
		if(adminlevel == 11) { adminlevel = 0; }
		new pnumber = PlayerInfo[targetid][pPnumber];
		new numtime = PlayerInfo[targetid][pCelltime];
		new drugs = PlayerInfo[targetid][pDrugs];
		new mats = PlayerInfo[targetid][pMats];
		new carkey = PlayerInfo[targetid][pCarkey];
		new carkey2 = PlayerInfo[targetid][pCarkey2];
		new carkey3 = PlayerInfo[targetid][pCarkey3];
		new rank = PlayerInfo[targetid][pRank];
		new intir = GetPlayerInterior(targetid);
		new virworld = GetPlayerVirtualWorld(targetid);
		new local = PlayerInfo[targetid][pLocal];
		new housekey = PlayerInfo[targetid][pHousekey];
		new bizkey = PlayerInfo[targetid][pPbiskey];
		new crimes = PlayerInfo[targetid][pCrimes];
		new arrests = PlayerInfo[targetid][pArrested];
		new freq = PlayerInfo[targetid][pWalkieFreq];
		new cpu = PlayerInfo[targetid][pLaptopCPU];
		new ram = PlayerInfo[targetid][pLaptopRAM];
		new space = PlayerInfo[targetid][pLaptopHardDisc];
		new netup = PlayerInfo[targetid][pLaptopUpSpeed];
		new netdown = PlayerInfo[targetid][pLaptopDownSpeed];

		new name[MAX_PLAYER_NAME];
		GetPlayerName(targetid, name, sizeof(name));
	    GiveNameSpace(name);
		new coordsstring1[128];
		new coordsstring2[128];
		new coordsstring3[128];
		new coordsstring4[128];
		new coordsstring5[128];
		new coordsstring6[128];
		new coordsstring7[128];
		new coordsstring21[128];
		new coordsstring22[128];
		new coordsstring9[128];
		new coordsstring10[128];
		new coordsstring11[128];
		new coordsstring12[128];
		new coordsstring13[128];
		new coordsstring14[128];
		new coordsstring15[128];
		new coordsstring16[128];
		new coordsstring17[128];
		new coordsstring18[128];
		new coordsstring19[128];
		new coordsstring20[128];
		//format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);

		if(type == 0)
		{
		format(coordsstring1, sizeof(coordsstring1), "[Account]: PlayingHours:[%d] DonateRank:[%s] Age:[%d] Cash:[$%d] Bank:[$%d]", ptime,drank,age,cash, account);
		format(coordsstring2, sizeof(coordsstring2), "[General]: AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]",adminlevel,jtext,freq);
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring3, sizeof(coordsstring3), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]", crimes,arrests);
		}
		if(PlayerInfo[targetid][pCellphone] == 0)//playerid
		{
            format(coordsstring4, sizeof(coordsstring4), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]",drugs,mats,atext,married);
        }
        else if(PlayerInfo[targetid][pCellphone] == 1)//playerid
		{
            format(coordsstring4, sizeof(coordsstring4), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] Phtime:[%d]",drugs,mats,atext,married,pnumber,numtime);
        }
        if(PlayerInfo[targetid][pLaptopCPU] != 0)
		{
			format(coordsstring5, sizeof(coordsstring5), "[LAPTOP]: CPU:[%dGHZ] RAM:[%dMB] HardDisc:[%dGB] Upload:[%dMBPS] Download:[%dMBPS]", cpu,ram,space,netup,netdown);
		}
        if(PlayerInfo[targetid][pMember] <= 7)
		{
		    format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
		}
		else if(PlayerInfo[targetid][pMember] >= 8)
		{
		    switch (PlayerInfo[targetid][pRank])
	        {
                case 0:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
		        }
		        case 1:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 2:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 3:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 4:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 5:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 6:
		        {
		            format(coordsstring6, sizeof(coordsstring6), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		    }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring7, sizeof(coordsstring7), "[Property]: Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d]",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent]);
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring9, sizeof(coordsstring9), "[Vehicle]: 1| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock],CarInfo[carkey][cImpounded],CarInfo[carkey][cImpoundedPrice],CarInfo[carkey][cInsur]);
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring10, sizeof(coordsstring10), "[Vehicle]: 2| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpounded],CarInfo[carkey2][cImpoundedPrice],CarInfo[carkey2][cInsur]);
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring11, sizeof(coordsstring11), "[Vehicle]: 3| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpounded],CarInfo[carkey3][cImpoundedPrice],CarInfo[carkey3][cInsur]);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring12, sizeof(coordsstring12), "[Admin]: House key [%d] Business key [%d] Veh1[%d](ID:%d) Veh2[%d](ID:%d) Veh3[%d](ID:%d) HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,ForwardOwnCarID(1,targetid),carkey2,ForwardOwnCarID(2,targetid),carkey3,ForwardOwnCarID(3,targetid),PlayerInfo2[HireCar][targetid],intir,virworld,local);
		}
		}
		else
		{
		format(coordsstring13, sizeof(coordsstring13), "[Account]: Age:[%d] Sex:[%s] Job:[%s] Bank:[$%d]", age,atext,jtext,account);
		if(PlayerInfo[playerid][pCellphone] == 0)
		{
		    format(coordsstring14, sizeof(coordsstring14), "[General]: WalkieFreq:[%d] MarriedTo:[%s]",freq,married);
		}
		else if(PlayerInfo[playerid][pCellphone] == 1)
		{
		    format(coordsstring14, sizeof(coordsstring14), "[General]: WalkieFreq:[%d] MarriedTo:[%s] Ph:[%d] Phonetime:[%d]",freq,married,pnumber,numtime);
		}
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring15, sizeof(coordsstring15), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]", crimes,arrests);
		}
        format(coordsstring22, sizeof(coordsstring22), "[Other]: Drugs:[%d] Materials:[%d] DonateRank:[%s] Time-In-LS:[%d]",drugs,mats,drank,ptime);
        if(PlayerInfo[targetid][pMember] <= 7)
		{
		    format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
		}
		else if(PlayerInfo[targetid][pMember] >= 8)
		{
            switch (PlayerInfo[targetid][pRank])
	        {
                case 0:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
		        }
		        case 1:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 2:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 3:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 4:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 5:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		        case 6:
		        {
		            format(coordsstring16, sizeof(coordsstring16), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        }
		    }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring17, sizeof(coordsstring17), "[Property]: Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d]",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent]);
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring18, sizeof(coordsstring18), "[Vehicle]: 1| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cLock],CarInfo[carkey][cImpoundedPrice],CarInfo[carkey][cInsur]);
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring19, sizeof(coordsstring19), "[Vehicle]: 2| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpoundedPrice],CarInfo[carkey2][cInsur]);
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring20, sizeof(coordsstring20), "[Vehicle]: 3| VehModel:[%s] VehValue:[%d] VehLocked:[%d] ImpoundPrice:[%d] Insurance:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpoundedPrice],CarInfo[carkey3][cInsur]);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring21, sizeof(coordsstring21), "[Admin]: House key [%d] Business key [%d] Veh1[%d](ID:%d) Veh2[%d](ID:%d) Veh3[%d](ID:%d) HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,ForwardOwnCarID(1,targetid),carkey2,ForwardOwnCarID(2,targetid),carkey3,ForwardOwnCarID(3,targetid),PlayerInfo2[HireCar][targetid],intir,virworld,local);
		}
		}
		ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Los Santos Life RolePlay | Stats",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6,coordsstring7,coordsstring9,coordsstring10,coordsstring11,coordsstring12,coordsstring13,coordsstring14,coordsstring15,coordsstring16,coordsstring17,coordsstring18,coordsstring19,coordsstring20,"OK","OK");
	}
}
But it shows me warnings , and IG everything gets bugged, anyway, can you tell me how can i fix this ?



Thank you