Problem /stats command
#1

Can I develop a /stats command? When i write /stats shows me this information:
Name: | Money: | Level: | Exp: /6 | Materials: | Drug: | House key: | Chiave Business: | Bank: | Warn: | Age: | Hours played: | Phone number: | Job: | Numero Number of arrests: | Robbery loot: | Armor: | Health: | Skin: |
A: | B: | C: | Flight: | Boating: | Firearms: | Faction: | Rank: | CLAN: |


Can i make it?
Reply
#2

Yes this is possible, it can be textdraws, dialogs and messages or whatever..

Use format. Or TextDrawSetString if you are using tds
Reply
#3

Just to make this clearer:
pawn Код:
CMD:stats(playerid, params[])
{
     
     new string[50];
     format(string,sizeof(string), "money: %d | level: %d",pinfo[playerid][money], pinfo[playerid][level]);
     SendClientMessage(playerid, -1, string);
     return 1;
}
I hope I helped any feedback would be appreciated!
Reply
#4

Why there are only those things? Where are Name, Exp, materials, drug, house key, business key, Age, hours played etc...?
Reply
#5

This is an example, I don't know what enum are you using, plus how would you train if I do all the job!,
I have taught you the trick you should try now.
Reply
#6

Where I paste this code?
Reply
#7

Can you make the script?
this is my pInfo
Код:
enum pInfo
{
	pKey[128],
	pLevel,
	pInt,
	pVirWorld,
	pAdmin,
	pJetpack,
	pScripter,
	pHelper,
    pPAntidolorifica,
    pPAntidroga,
    pPRigenerazione,
	pDonateRank,
	pRegistered,
	pSex,
	pCity,
	pInvWeapon,
	pInvAmmo,
	pAge,
	pExp,
	pCash,
	pBank,
	pSkin,
	pDroga,
	pAssicuraz,
	pUsoMaschera,
	pOrologio,
	pZaino,
	pCorde,
	pLottoNr,
	pWalkietalkie,
	pBenda,
	pTrafficoCell,
	pSigarette,
	pRequestingBackup,
	pAccendino,
	pMaschera,
	pDado,
	pTomtom,
	pCalcolatrice,
	pMateriali,
	pJob,
	pPlayingHours,
	pAllowedPayday,
	pPayCheck,
	pFaction,
	pClan,
	pHeadQuarter,
	pRank,
	pHouseKey,
	pBizKey,
	pSpawnPoint,
	pBanned,
	pWarnings,
	pArresti,
	pLicenzaA,
	pPcarkey,
	pPcarkey2,
	pPcarkey3,
	pPcarkey4,
	pPcarkey5,
	pPcarkey6,
	pPcarkey7,
	pPcarkey8,
	pPcarkey9,
	pPcarkey10,
	pChiavePrestata,
	pLicenzaB,
	pLicenzaC,
	pLicenzaD,
	pLicenzaVolo,
	pLicenzaNautica,
	pLicenzaArmi,
	pPhoneNumber,
	pPhoneC,
	pPagineGialle,
	pListNumber,
	pDonatore,
	pJailed,
	pJailTime,
	pProducts,
	Float:pCrashX,
	Float:pCrashY,
	Float:pCrashZ,
	pCrashInt,
	pCrashW,
	pCrashed,
};
Reply
#8

Just do what I did and it's all good..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)