Saving system /stats
#1

i need help i m using this saving system :-
https://sampforum.blast.hk/showthread.php?tid=234691

but i am.unable to create a /stats command which can load the player saved stats files and display it when a player type /stats.

I want to display players kills, deaths, money,score and kill death ratio can someone help.
Reply
#2

Simple, just add the variable in the format, something like this:
PHP код:
CMD:stats(playeridparams[])
{
    new 
str[128];
    
format(strsizeof(str), "Kills: %d, Deaths: %d, Money: %d, etc.."Killz[playerid], Deathz[playerid], GetPlayerMoney(playerid));
    
SendClientMessage(playerid, -1str);
    return 
1;

Reply
#3

FYI: Y_ini is much faster and more efficient than dini,
same way sqlite(/MySQL) is way more faster than ini based saving systems
Reply
#4

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Simple, just add the variable in the format, something like this:
PHP код:
CMD:stats(playeridparams[])
{
    new 
str[128];
    
format(strsizeof(str), "Kills: %d, Deaths: %d, Money: %d, etc.."Killz[playerid], Deathz[playerid], GetPlayerMoney(playerid));
    
SendClientMessage(playerid, -1str);
    return 
1;

ty for help but bro its not working giving me so much errors.
Reply
#5

Can you show me the errors?
Reply
#6

This is the error that i got.
warning 203: symbol is never used: "stats"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)