Problem /stats command -
Steveproxy5 - 02.08.2014
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?
Re: Problem /stats command -
Stanford - 02.08.2014
Yes this is possible, it can be textdraws, dialogs and messages or whatever..
Use format. Or TextDrawSetString if you are using tds
Re: Problem /stats command -
Stanford - 02.08.2014
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!
Re: Problem /stats command -
Steveproxy5 - 02.08.2014
Why there are only those things? Where are Name, Exp, materials, drug, house key, business key, Age, hours played etc...?
Re: Problem /stats command -
Stanford - 02.08.2014
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.
Re: Problem /stats command -
Steveproxy5 - 02.08.2014
Where I paste this code?
Re: Problem /stats command -
Steveproxy5 - 02.08.2014
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,
};
Re: Problem /stats command -
Stanford - 02.08.2014
Just do what I did and it's all good..