#1

Hello.

I need /stats command and i know this is not "Giving free codes" etc..

I tried to find but i couldn't anyways i need it as a tutorial or if someone finds a tutorial please PM or Comment.

Thank you.
Reply
#2

Which user saving system you using?
Reply
#3

What do you mean?

I used that tutorial will it help ? https://sampforum.blast.hk/showthread.php?tid=167937
Reply
#4

Here

pawn Код:
CMD:stats(playerid,prams[])
{
    new pName[MAX_PLAYER_NAME];
    new string[128];
    new score = PlayerInfo[playerid][pScore]
    new adminlevel = PlayerInfo[playerid][pAdminLevel]
    new money = PlayerInfo[playerid][pMoney]
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"Name:%s Score:%d Money:%d AdminLevel:%d.",pName,score,money,adminlevel);
    SendClientMessage(playerid,-1,string);
}
Reply
#5

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
i need it as a tutorial
:P please
Reply
#6

Код:
CMD:stats(playerid, params[])
{
new string[200];

format(string, sizeof(string), "Name: %s | ID: %d | Score: %d | Money: %d |", GetPlayerName, GetPlayerID, GetPlayerScore, GetPlayerMoney);
SendClientMessage(playerid , -1, string);
return 1;
}
Reply
#7

PHP код:
new cash PlayerInfo[playerid][pCash]; 
Код:
 warning 204: symbol is assigned a value that is never used: "cash"
Reply
#8

Dude i wrote pMoney not pCash acording to that tutorial.
Reply
#9

Quote:
Originally Posted by Gogeta
Посмотреть сообщение
Dude i wrote pMoney not pCash acording to that tutorial.
Then change it to pCash
Reply
#10

well it says like that in my GM

PHP код:
enum pInfo
{
 
pAdminLevel,
 
pCash,
 
pScore,
}
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)