Error /stats
#1

I use command /stats to view my information but it error:

Код:
SERVER: Unknown command. Please use /help to list all available commands.

Code stats:

Код:
CMD:stats(playerid, params[]) {
	if (gPlayerLogged{playerid} != 0) {
		ShowStats(playerid,playerid);
	}
	return 1;
}
and

Код:
stock ShowStats(playerid,targetid)
{
	if(IsPlayerConnected(targetid)) {
	    SendClientMessageEx(playerid, COLOR_GREEN,"___________________________________________________________________________________________________");
		new cash =  GetPlayerCash(targetid);
		new sext[16], doibungt[10], std[20], employer[64], rank[64], division[64], jtext2[20], jtext[20], pnumber[20], facfam[20];
		if(PlayerInfo[targetid][pPnumber] == 0) pnumber = "None"; else format(pnumber, sizeof(pnumber), "%d", PlayerInfo[targetid][pPnumber]);
		if(PlayerInfo[targetid][pSex] == 1) { sext = "Nam"; } else { sext = "Nu"; }
		if(PlayerInfo[targetid][pDoibung] >= 85) { doibungt = "Rat No"; }
		else if(PlayerInfo[targetid][pDoibung] >= 50) { doibungt = "No Bung"; }
		else if(PlayerInfo[targetid][pDoibung] >= 25) { doibungt = "Doi Bung"; }
		else if(PlayerInfo[targetid][pDoibung] < 25) { doibungt = "Rat Doi"; }
		switch(GetPVarInt(playerid, "STD"))
		{
		    case 1: std = "Chlamydia";
		    case 2: std = "Gonorrhea";
		    case 3: std = "Syphilis";
		    default: std = "None";
		}
		facfam = "Faction";
		if(PlayerInfo[targetid][pFMember] < 255)
		{
		    facfam = "Family"; division = "None";
			format(employer, sizeof(employer), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]);
			switch(PlayerInfo[targetid][pRank])
			{
				case 1: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank1]);
				case 2: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank2]);
				case 3: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank3]);
				case 4: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank4]);
				case 5: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank5]);
	  			case 6: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank6]);
				default: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank1]);
			}
		}
		else GetPlayerFactionInfo(targetid, rank, division, employer);
		switch(PlayerInfo[targetid][pJob])
		{
			case 1: jtext = "Tham tu";
			case 2: jtext = "Luat su";
			case 3: jtext = "Whore";
			case 4: jtext = "Drugs Dealer";
			//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 = "Drug Smuggler";
			case 15: jtext = "Paper Boy";
			case 16: jtext = "Trucker";
			case 17: jtext = "Taxi Driver";
			case 18: jtext = "Tho thu cong";
			case 19: jtext = "Bartender";
			case 20: jtext = "Trucker";
			case 21: jtext = "Pizza Boy";
			case 22: jtext = "Buon Dau";
			case 23: jtext = "Nong Dan";
			case 24: jtext = "Dao Vang";
			case 25: jtext = "Buon Vang";
			default: jtext = "None";
		}
		switch(PlayerInfo[targetid][pJob2])
		{
			case 1: jtext2 = "Tham tu";
			case 2: jtext2 = "Luat su";
			case 3: jtext2 = "Whore";
			case 4: jtext2 = "Drugs Dealer";
			//case 5: jtext2 = "Car Jacker";
			case 6: jtext2 = "News Reporter";
			case 7: jtext2 = "Car Mechanic";
			case 8: jtext2 = "Bodyguard";
			case 9: jtext2 = "Arms Dealer";
			case 10: jtext2 = "Car Dealer";
			case 12: jtext2 = "Boxer";
			case 14: jtext2 = "Drug Smuggler";
			case 15: jtext2 = "Paper Boy";
			case 16: jtext2 = "Trucker";
			case 17: jtext2 = "Taxi Driver";
			case 18: jtext2 = "Tho thu cong";
			case 19: jtext2 = "Bartender";
			case 20: jtext2 = "Trucker";
			case 21: jtext2 = "Pizza Boy";
			case 22: jtext2 = "Buon Dau";
			case 23: jtext2 = "Nong Dan";
			case 24: jtext2 = "Dao Vang";
			case 25: jtext2 = "Buon Vang";
			default: jtext2 = "None";
		}
		new jlevel, jlevel2;
		switch(PlayerInfo[targetid][pJob])
		{
			case 1:
			{
					new skilllevel = PlayerInfo[targetid][pDetSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			case 2:
			{
					new skilllevel = PlayerInfo[targetid][pLawSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			case 3:
			{
					new skilllevel = PlayerInfo[targetid][pSexSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			case 4:
			{
					new skilllevel = PlayerInfo[targetid][pDrugsSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
	  		case 7:
			{
					new skilllevel = PlayerInfo[targetid][pMechSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			case 9:
			{
					new skilllevel = PlayerInfo[targetid][pArmsSkill];
					if(skilllevel >= 0 && skilllevel < 50) { jlevel = 1; }
					else if(skilllevel >= 50 && skilllevel < 100) { jlevel = 2; }
					else if(skilllevel >= 100 && skilllevel < 200) { jlevel = 3; }
					else if(skilllevel >= 200 && skilllevel < 400) { jlevel = 4; }
					else if(skilllevel >= 400) { jlevel = 5; }
			}
			case 12:
			{
					new skilllevel = PlayerInfo[targetid][pBoxSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			case 14: jlevel = 1;
			case 20:
			{
					new skilllevel = PlayerInfo[targetid][pTruckSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
					else if(skilllevel >= 401) { jlevel = 5; }
			}
			default: jlevel = 0;
		}
		switch(PlayerInfo[targetid][pJob2])
		{
			case 1:
			{
					new skilllevel = PlayerInfo[targetid][pDetSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			case 2:
			{
					new skilllevel = PlayerInfo[targetid][pLawSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			case 3:
			{
					new skilllevel = PlayerInfo[targetid][pSexSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			case 4:
			{
					new skilllevel = PlayerInfo[targetid][pDrugsSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
	  		case 7:
			{
					new skilllevel = PlayerInfo[targetid][pMechSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			case 9:
			{
					new skilllevel = PlayerInfo[targetid][pArmsSkill];
					if(skilllevel >= 0 && skilllevel < 50) { jlevel2 = 1; }
					else if(skilllevel >= 50 && skilllevel < 100) { jlevel2 = 2; }
					else if(skilllevel >= 100 && skilllevel < 200) { jlevel2 = 3; }
					else if(skilllevel >= 200 && skilllevel < 400) { jlevel2 = 4; }
					else if(skilllevel >= 400) { jlevel2 = 5; }
			}
			case 12:
			{
					new skilllevel = PlayerInfo[targetid][pBoxSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			case 14: jlevel2 = 1;
			case 20:
			{
					new skilllevel = PlayerInfo[targetid][pTruckSkill];
					if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
					else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
					else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
					else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
					else if(skilllevel >= 401) { jlevel2 = 5; }
			}
			default: jlevel2 = 0;
		}
		new drank[20];
		switch(PlayerInfo[targetid][pDonateRank])
		{
			case 1: drank = "Bronze";
			case 2: drank = "Silver";
			case 3: drank = "Gold";
			case 4: drank = "Platinum";
			case 5: drank = "Moderator";
			default: drank = "None";
		}
		new insur[20];
		switch(PlayerInfo[targetid][pInsurance])
		{
			case 1: insur = "County General";
			case 2: insur = "All Saints";
			case 3: insur = "Red County";
			case 4: insur = "Fort Carson";
			case 5: insur = "San Fierro";
			case 6: insur = "Club VIP";
			case 7: insur = "Home care";
			case 9: insur = "El Quabrados";
			case 10: insur = "Demorgan";
			default: insur = "None";
		}
		new married[20];
		strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
		new upgradep = PlayerInfo[targetid][gPupgrade];
		new age = PlayerInfo[targetid][pAge];
		new ptime = PlayerInfo[targetid][pConnectHours];
		new bigfish = PlayerInfo[targetid][pBiggestFish];
		new crimes = PlayerInfo[targetid][pCrimes];
		new arrests = PlayerInfo[targetid][pArrested];
		new pot = PlayerInfo[targetid][pPot];
		new crack = PlayerInfo[targetid][pCrack];
		new mats = PlayerInfo[targetid][pMats];
		new wanted = PlayerInfo[targetid][pWantedLevel];
		new level = PlayerInfo[targetid][pLevel];
		new exp = PlayerInfo[targetid][pExp];
		new coin = PlayerInfo[targetid][pCoin];
		new vang = PlayerInfo[targetid][pVang];
		new dau = PlayerInfo[targetid][pDau];
		new account = PlayerInfo[targetid][pAccount];
		new nxtlevel = PlayerInfo[targetid][pLevel]+1;
		new expamount = nxtlevel*4;
		new costlevel = nxtlevel*25000;//10k for testing purposes
		new housekey = PlayerInfo[targetid][pPhousekey];
		new housekey2 = PlayerInfo[targetid][pPhousekey2];
		new rentkey = PlayerInfo[targetid][pRenting];
		new papers = PlayerInfo[targetid][pPaper];
		new radiofreq = PlayerInfo[targetid][pRadioFreq];
		new intir = GetPlayerInterior(targetid);
		new tokens = PlayerInfo[targetid][pTokens];
		new ptokens = PlayerInfo[targetid][pPaintTokens];
		new checks = PlayerInfo[targetid][pChecks];
		new Float:shealth = PlayerInfo[targetid][pSHealth];
		new Float:health, Float:armor;
		new packages = GetPVarInt(targetid, "Packages");
		new crates = PlayerInfo[targetid][pCrates];
		new rope = PlayerInfo[targetid][pRope],
			cigars = PlayerInfo[targetid][pCigar],
			sprunk = PlayerInfo[targetid][pSprunk],
			spray = PlayerInfo[targetid][pSpraycan],
			realvw = GetPlayerVirtualWorld(targetid),
			vw = PlayerInfo[targetid][pVW],
			warns = PlayerInfo[targetid][pWarns],
			jailt = PlayerInfo[targetid][pJailTime],
			wjailt = PlayerInfo[targetid][pBeingSentenced];
		GetPlayerHealth(targetid,health);
		GetPlayerArmour(targetid,armor);
		new Float:px,Float:py,Float:pz;
		GetPlayerPos(targetid, px, py, pz);
		new totalwealth;
		new name[MAX_PLAYER_NAME];
		GetPlayerName(targetid, name, sizeof(name));
		new nmutes = PlayerInfo[targetid][pNMuteTotal];
		new admutes = PlayerInfo[targetid][pADMuteTotal];
		new thucan = PlayerInfo[targetid][pThucan];
		new botmi = PlayerInfo[playerid][pCookies];
		totalwealth = account + cash;
		if(PlayerInfo[targetid][pPhousekey] != INVALID_HOUSE_ID && strcmp(name, HouseInfo[PlayerInfo[targetid][pPhousekey]][hOwner], true) == 0) totalwealth += HouseInfo[PlayerInfo[targetid][pPhousekey]][hSafeMoney];
		if(PlayerInfo[targetid][pPhousekey2] != INVALID_HOUSE_ID && strcmp(name, HouseInfo[PlayerInfo[targetid][pPhousekey2]][hOwner], true) == 0) totalwealth += HouseInfo[PlayerInfo[targetid][pPhousekey2]][hSafeMoney];
		if(PlayerInfo[targetid][pBusiness] != INVALID_BIZ_ID && strcmp(name, BusinessInfo[PlayerInfo[targetid][pBusiness]][bOwner], true) == 0) totalwealth += BusinessInfo[PlayerInfo[targetid][pBusiness]][bSafeMoney];
		if(PlayerInfo[targetid][pBusiness2] != INVALID_BIZ_ID && strcmp(name, BusinessInfo[PlayerInfo[targetid][pBusiness2]][bOwner], true) == 0) totalwealth += BusinessInfo[PlayerInfo[targetid][pBusiness2]][bSafeMoney];
		new coordsstring[128];
		format(coordsstring, sizeof(coordsstring),"%s - Cap %d | %s | Tuoi: %d | Tong tai san: $%d | Da Choi(Gio): %d | So dien thoai: %s | Warnings: %d",GetPlayerNameEx(targetid), level, sext, age, totalwealth, ptime, pnumber, warns);
		SendClientMessageEx(playerid, COLOR_WHITE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Tien: $%d | Tien ngan hang: $%d | Diem nang cap: %d | Spawn armor: %.0f | Cap tiep theo: %d/%d gio ($%d)", cash, account, upgradep, shealth, exp, expamount, costlevel);
		SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
		format(coordsstring, sizeof(coordsstring), "%s: %s | Rank: %s (%d) | Division: %s | Nghe chinh: %s (cap: %d) | Nghe phu: %s (cap: %d)", facfam, employer, rank, PlayerInfo[targetid][pRank], division, jtext,jlevel,jtext2, jlevel2);
		SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Toi pham: %d | Bat giam: %d | Bao hiem: %s | Cap truy na: %d | Mau: %.1f | Giap: %.1f | Paintball Tokens: %d",crimes,arrests,insur, wanted, health, armor, ptokens);
		SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Ket hon: %s | Ca lon nhat: %d | Pot: %d | Crack: %d | Packages: %d | : %d | Tem thu: %d | Radio freq: %d khz",married,bigfish,pot,crack,packages,crates,papers,radiofreq);
		SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Vat lieu: %d | Rope: %d | Cigars: %d | Sprunk: %d | Binh son: %d | Tua vнt: %d | VIP tokens: %d | Checks: %d | VIP: %s",mats,rope,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank);
		SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
		format(coordsstring, sizeof(coordsstring), "ADMutes: %d | NMutes: %d | RMutes: %d | Han che vu khi: %d | Gang Warns: %d | EXP Tokens: %d | EXP Hours: %d", admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn], PlayerInfo[targetid][pEXPToken], PlayerInfo[targetid][pDoubleEXP]);
		SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Dau: %d | Vang: %d | Bot mi: %d | Thuc an: %d | Hunger: %s (%d) | Referral: %d | Online: %d | Coin: %d", dau, vang, botmi, thucan, doibungt, PlayerInfo[targetid][pDoibung], PlayerInfo[playerid][pGioithieu], PlayerInfo[playerid][pHtOnline], coin);
		SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
		if (PlayerInfo[playerid][pAdmin] >= 2)
		{
		    format(coordsstring, sizeof(coordsstring), "House: %d | House 2: %d | Renting: %d | Int: %d | VW: %d | Real VW: %d | Jail: %d sec | WJail: %d sec | VIPM: %i | GVip: %i", housekey,housekey2,rentkey,intir,vw,realvw,jailt,wjailt, PlayerInfo[targetid][pVIPM], PlayerInfo[targetid][pGVip]);
		    SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
		    format(coordsstring, sizeof(coordsstring), "Reward Hours: %.2f | Computer Drawing: %d | Gift Box Tokens: %d", PlayerInfo[targetid][pRewardHours],PlayerInfo[targetid][pRewardDrawChance],PlayerInfo[targetid][pGoldBoxTokens]);
		    SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1337)
		{
		    if(PlayerInfo[targetid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
			{
			    format(coordsstring, sizeof(coordsstring), "Bбo cбo chap nhan: %d | Bбo cбo thung rac: %d", PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pTrashReport]);
			    SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
			}
			if(PlayerInfo[targetid][pHelper] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
			{
			    format(coordsstring, sizeof(coordsstring), "Gio Thi hanh nhiem vu: %d | Chap nhan s giup do yeu cau: %d", PlayerInfo[targetid][pDutyHours], PlayerInfo[targetid][pAcceptedHelp]);
			    SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
			}
		}
	    SendClientMessageEx(playerid, COLOR_GREEN,"___________________________________________________________________________________________________");
	}
}
Reply
#2

pawn Код:
stock ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(targetid)) {
        SendClientMessageEx(playerid, COLOR_GREEN,"___________________________________________________________________________________________________");
        new cash =  GetPlayerCash(targetid);
        new sext[16], doibungt[10], std[20], employer[64], rank[64], division[64], jtext2[20], jtext[20], pnumber[20], facfam[20];
        if(PlayerInfo[targetid][pPnumber] == 0) pnumber = "None"; else format(pnumber, sizeof(pnumber), "%d", PlayerInfo[targetid][pPnumber]);
        if(PlayerInfo[targetid][pSex] == 1) { sext = "Nam"; } else { sext = "Nu"; }
        if(PlayerInfo[targetid][pDoibung] >= 85) { doibungt = "Rat No"; }
        else if(PlayerInfo[targetid][pDoibung] >= 50) { doibungt = "No Bung"; }
        else if(PlayerInfo[targetid][pDoibung] >= 25) { doibungt = "Doi Bung"; }
        else if(PlayerInfo[targetid][pDoibung] < 25) { doibungt = "Rat Doi"; }
        switch(GetPVarInt(playerid, "STD"))
        {
            case 1: std = "Chlamydia";
            case 2: std = "Gonorrhea";
            case 3: std = "Syphilis";
            default: std = "None";
        }
        facfam = "Faction";
        if(PlayerInfo[targetid][pFMember] < 255)
        {
            facfam = "Family"; division = "None";
            format(employer, sizeof(employer), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]);
            switch(PlayerInfo[targetid][pRank])
            {
                case 1: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank1]);
                case 2: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank2]);
                case 3: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank3]);
                case 4: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank4]);
                case 5: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank5]);
                case 6: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank6]);
                default: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyRank1]);
            }
        }
        else GetPlayerFactionInfo(targetid, rank, division, employer);
        switch(PlayerInfo[targetid][pJob])
        {
            case 1: jtext = "Tham tu";
            case 2: jtext = "Luat su";
            case 3: jtext = "Whore";
            case 4: jtext = "Drugs Dealer";
            //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 = "Drug Smuggler";
            case 15: jtext = "Paper Boy";
            case 16: jtext = "Trucker";
            case 17: jtext = "Taxi Driver";
            case 18: jtext = "Tho thu cong";
            case 19: jtext = "Bartender";
            case 20: jtext = "Trucker";
            case 21: jtext = "Pizza Boy";
            case 22: jtext = "Buon Dau";
            case 23: jtext = "Nong Dan";
            case 24: jtext = "Dao Vang";
            case 25: jtext = "Buon Vang";
            default: jtext = "None";
        }
        switch(PlayerInfo[targetid][pJob2])
        {
            case 1: jtext2 = "Tham tu";
            case 2: jtext2 = "Luat su";
            case 3: jtext2 = "Whore";
            case 4: jtext2 = "Drugs Dealer";
            //case 5: jtext2 = "Car Jacker";
            case 6: jtext2 = "News Reporter";
            case 7: jtext2 = "Car Mechanic";
            case 8: jtext2 = "Bodyguard";
            case 9: jtext2 = "Arms Dealer";
            case 10: jtext2 = "Car Dealer";
            case 12: jtext2 = "Boxer";
            case 14: jtext2 = "Drug Smuggler";
            case 15: jtext2 = "Paper Boy";
            case 16: jtext2 = "Trucker";
            case 17: jtext2 = "Taxi Driver";
            case 18: jtext2 = "Tho thu cong";
            case 19: jtext2 = "Bartender";
            case 20: jtext2 = "Trucker";
            case 21: jtext2 = "Pizza Boy";
            case 22: jtext2 = "Buon Dau";
            case 23: jtext2 = "Nong Dan";
            case 24: jtext2 = "Dao Vang";
            case 25: jtext2 = "Buon Vang";
            default: jtext2 = "None";
        }
        new jlevel, jlevel2;
        switch(PlayerInfo[targetid][pJob])
        {
            case 1:
            {
                    new skilllevel = PlayerInfo[targetid][pDetSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 2:
            {
                    new skilllevel = PlayerInfo[targetid][pLawSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 3:
            {
                    new skilllevel = PlayerInfo[targetid][pSexSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 4:
            {
                    new skilllevel = PlayerInfo[targetid][pDrugsSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 7:
            {
                    new skilllevel = PlayerInfo[targetid][pMechSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 9:
            {
                    new skilllevel = PlayerInfo[targetid][pArmsSkill];
                    if(skilllevel >= 0 && skilllevel < 50) { jlevel = 1; }
                    else if(skilllevel >= 50 && skilllevel < 100) { jlevel = 2; }
                    else if(skilllevel >= 100 && skilllevel < 200) { jlevel = 3; }
                    else if(skilllevel >= 200 && skilllevel < 400) { jlevel = 4; }
                    else if(skilllevel >= 400) { jlevel = 5; }
            }
            case 12:
            {
                    new skilllevel = PlayerInfo[targetid][pBoxSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            case 14: jlevel = 1;
            case 20:
            {
                    new skilllevel = PlayerInfo[targetid][pTruckSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
                    else if(skilllevel >= 401) { jlevel = 5; }
            }
            default: jlevel = 0;
        }
        switch(PlayerInfo[targetid][pJob2])
        {
            case 1:
            {
                    new skilllevel = PlayerInfo[targetid][pDetSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 2:
            {
                    new skilllevel = PlayerInfo[targetid][pLawSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 3:
            {
                    new skilllevel = PlayerInfo[targetid][pSexSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 4:
            {
                    new skilllevel = PlayerInfo[targetid][pDrugsSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 7:
            {
                    new skilllevel = PlayerInfo[targetid][pMechSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 9:
            {
                    new skilllevel = PlayerInfo[targetid][pArmsSkill];
                    if(skilllevel >= 0 && skilllevel < 50) { jlevel2 = 1; }
                    else if(skilllevel >= 50 && skilllevel < 100) { jlevel2 = 2; }
                    else if(skilllevel >= 100 && skilllevel < 200) { jlevel2 = 3; }
                    else if(skilllevel >= 200 && skilllevel < 400) { jlevel2 = 4; }
                    else if(skilllevel >= 400) { jlevel2 = 5; }
            }
            case 12:
            {
                    new skilllevel = PlayerInfo[targetid][pBoxSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            case 14: jlevel2 = 1;
            case 20:
            {
                    new skilllevel = PlayerInfo[targetid][pTruckSkill];
                    if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                    else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                    else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                    else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                    else if(skilllevel >= 401) { jlevel2 = 5; }
            }
            default: jlevel2 = 0;
        }
        new drank[20];
        switch(PlayerInfo[targetid][pDonateRank])
        {
            case 1: drank = "Bronze";
            case 2: drank = "Silver";
            case 3: drank = "Gold";
            case 4: drank = "Platinum";
            case 5: drank = "Moderator";
            default: drank = "None";
        }
        new insur[20];
        switch(PlayerInfo[targetid][pInsurance])
        {
            case 1: insur = "County General";
            case 2: insur = "All Saints";
            case 3: insur = "Red County";
            case 4: insur = "Fort Carson";
            case 5: insur = "San Fierro";
            case 6: insur = "Club VIP";
            case 7: insur = "Home care";
            case 9: insur = "El Quabrados";
            case 10: insur = "Demorgan";
            default: insur = "None";
        }
        new married[20];
        strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
        new upgradep = PlayerInfo[targetid][gPupgrade];
        new age = PlayerInfo[targetid][pAge];
        new ptime = PlayerInfo[targetid][pConnectHours];
        new bigfish = PlayerInfo[targetid][pBiggestFish];
        new crimes = PlayerInfo[targetid][pCrimes];
        new arrests = PlayerInfo[targetid][pArrested];
        new pot = PlayerInfo[targetid][pPot];
        new crack = PlayerInfo[targetid][pCrack];
        new mats = PlayerInfo[targetid][pMats];
        new wanted = PlayerInfo[targetid][pWantedLevel];
        new level = PlayerInfo[targetid][pLevel];
        new exp = PlayerInfo[targetid][pExp];
        new coin = PlayerInfo[targetid][pCoin];
        new vang = PlayerInfo[targetid][pVang];
        new dau = PlayerInfo[targetid][pDau];
        new account = PlayerInfo[targetid][pAccount];
        new nxtlevel = PlayerInfo[targetid][pLevel]+1;
        new expamount = nxtlevel*4;
        new costlevel = nxtlevel*25000;//10k for testing purposes
        new housekey = PlayerInfo[targetid][pPhousekey];
        new housekey2 = PlayerInfo[targetid][pPhousekey2];
        new rentkey = PlayerInfo[targetid][pRenting];
        new papers = PlayerInfo[targetid][pPaper];
        new radiofreq = PlayerInfo[targetid][pRadioFreq];
        new intir = GetPlayerInterior(targetid);
        new tokens = PlayerInfo[targetid][pTokens];
        new ptokens = PlayerInfo[targetid][pPaintTokens];
        new checks = PlayerInfo[targetid][pChecks];
        new Float:shealth = PlayerInfo[targetid][pSHealth];
        new Float:health, Float:armor;
        new packages = GetPVarInt(targetid, "Packages");
        new crates = PlayerInfo[targetid][pCrates];
        new rope = PlayerInfo[targetid][pRope],
            cigars = PlayerInfo[targetid][pCigar],
            sprunk = PlayerInfo[targetid][pSprunk],
            spray = PlayerInfo[targetid][pSpraycan],
            realvw = GetPlayerVirtualWorld(targetid),
            vw = PlayerInfo[targetid][pVW],
            warns = PlayerInfo[targetid][pWarns],
            jailt = PlayerInfo[targetid][pJailTime],
            wjailt = PlayerInfo[targetid][pBeingSentenced];
        GetPlayerHealth(targetid,health);
        GetPlayerArmour(targetid,armor);
        new Float:px,Float:py,Float:pz;
        GetPlayerPos(targetid, px, py, pz);
        new totalwealth;
        new name[MAX_PLAYER_NAME];
        GetPlayerName(targetid, name, sizeof(name));
        new nmutes = PlayerInfo[targetid][pNMuteTotal];
        new admutes = PlayerInfo[targetid][pADMuteTotal];
        new thucan = PlayerInfo[targetid][pThucan];
        new botmi = PlayerInfo[playerid][pCookies];
        totalwealth = account + cash;
        if(PlayerInfo[targetid][pPhousekey] != INVALID_HOUSE_ID && strcmp(name, HouseInfo[PlayerInfo[targetid][pPhousekey]][hOwner], true) == 0) totalwealth += HouseInfo[PlayerInfo[targetid][pPhousekey]][hSafeMoney];
        if(PlayerInfo[targetid][pPhousekey2] != INVALID_HOUSE_ID && strcmp(name, HouseInfo[PlayerInfo[targetid][pPhousekey2]][hOwner], true) == 0) totalwealth += HouseInfo[PlayerInfo[targetid][pPhousekey2]][hSafeMoney];
        if(PlayerInfo[targetid][pBusiness] != INVALID_BIZ_ID && strcmp(name, BusinessInfo[PlayerInfo[targetid][pBusiness]][bOwner], true) == 0) totalwealth += BusinessInfo[PlayerInfo[targetid][pBusiness]][bSafeMoney];
        if(PlayerInfo[targetid][pBusiness2] != INVALID_BIZ_ID && strcmp(name, BusinessInfo[PlayerInfo[targetid][pBusiness2]][bOwner], true) == 0) totalwealth += BusinessInfo[PlayerInfo[targetid][pBusiness2]][bSafeMoney];
        new coordsstring[128];
        format(coordsstring, sizeof(coordsstring),"%s - Cap %d | %s | Tuoi: %d | Tong tai san: $%d | Da Choi(Gio): %d | So dien thoai: %s | Warnings: %d",GetPlayerNameEx(targetid), level, sext, age, totalwealth, ptime, pnumber, warns);
        SendClientMessageEx(playerid, COLOR_WHITE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Tien: $%d | Tien ngan hang: $%d | Diem nang cap: %d | Spawn armor: %.0f | Cap tiep theo: %d/%d gio ($%d)", cash, account, upgradep, shealth, exp, expamount, costlevel);
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
        format(coordsstring, sizeof(coordsstring), "%s: %s | Rank: %s (%d) | Division: %s | Nghe chinh: %s (cap: %d) | Nghe phu: %s (cap: %d)", facfam, employer, rank, PlayerInfo[targetid][pRank], division, jtext,jlevel,jtext2, jlevel2);
        SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Toi pham: %d | Bat giam: %d | Bao hiem: %s | Cap truy na: %d | Mau: %.1f | Giap: %.1f | Paintball Tokens: %d",crimes,arrests,insur, wanted, health, armor, ptokens);
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Ket hon: %s | Ca lon nhat: %d | Pot: %d | Crack: %d | Packages: %d | : %d | Tem thu: %d | Radio freq: %d khz",married,bigfish,pot,crack,packages,crates,papers,radiofreq);
        SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Vat lieu: %d | Rope: %d | Cigars: %d | Sprunk: %d | Binh son: %d | Tua vнt: %d | VIP tokens: %d | Checks: %d | VIP: %s",mats,rope,cigars,sprunk,spray, PlayerInfo[targetid][pScrewdriver],tokens,checks,drank);
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
        format(coordsstring, sizeof(coordsstring), "ADMutes: %d | NMutes: %d | RMutes: %d | Han che vu khi: %d | Gang Warns: %d | EXP Tokens: %d | EXP Hours: %d", admutes, nmutes, PlayerInfo[targetid][pRMutedTotal],PlayerInfo[targetid][pWRestricted], PlayerInfo[targetid][pGangWarn], PlayerInfo[targetid][pEXPToken], PlayerInfo[targetid][pDoubleEXP]);
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Dau: %d | Vang: %d | Bot mi: %d | Thuc an: %d | Hunger: %s (%d) | Referral: %d | Online: %d | Coin: %d", dau, vang, botmi, thucan, doibungt, PlayerInfo[targetid][pDoibung], PlayerInfo[playerid][pGioithieu], PlayerInfo[playerid][pHtOnline], coin);
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);
        if (PlayerInfo[playerid][pAdmin] >= 2)
        {
            format(coordsstring, sizeof(coordsstring), "House: %d | House 2: %d | Renting: %d | Int: %d | VW: %d | Real VW: %d | Jail: %d sec | WJail: %d sec | VIPM: %i | GVip: %i", housekey,housekey2,rentkey,intir,vw,realvw,jailt,wjailt, PlayerInfo[targetid][pVIPM], PlayerInfo[targetid][pGVip]);
            SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
            format(coordsstring, sizeof(coordsstring), "Reward Hours: %.2f | Computer Drawing: %d | Gift Box Tokens: %d", PlayerInfo[targetid][pRewardHours],PlayerInfo[targetid][pRewardDrawChance],PlayerInfo[targetid][pGoldBoxTokens]);
            SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
        }
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
            if(PlayerInfo[targetid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
            {
                format(coordsstring, sizeof(coordsstring), "Bбo cбo chap nhan: %d | Bбo cбo thung rac: %d", PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pTrashReport]);
                SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
            }
            if(PlayerInfo[targetid][pHelper] >= 2 && PlayerInfo[playerid][pAdmin] >= 2)
            {
                format(coordsstring, sizeof(coordsstring), "Gio Thi hanh nhiem vu: %d | Chap nhan s giup do yeu cau: %d", PlayerInfo[targetid][pDutyHours], PlayerInfo[targetid][pAcceptedHelp]);
                SendClientMessageEx(playerid, COLOR_GRAD5,coordsstring);
            }
        }
        SendClientMessageEx(playerid, COLOR_GREEN,"___________________________________________________________________________________________________");
    }
    return 1;
}
You forgot return 1;
Reply
#3

You must return 1; or it will give the unknown command text.
Reply
#4

Quote:
Originally Posted by Abagail
Посмотреть сообщение
You must return 1; or it will give the unknown command text.

I have returned 1 but it still be error:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)