Score showing 0
#1

When I do my /stats, it shows the score is "0" when I have 15.

Here's the lines:

Код:
format(string,sizeof(string),"Score: %d", PlayerInfo[playerid][pScore]);
	SendClientMessage(playerid,0xFF1000FF,string);
Reply
#2

Lal.
Reply
#3

GetPlayerScore ?
Reply
#4

Hey Noah, I have nothing against you so.
Have you taken note you need to GetPlayerScore?
Quote:

format(string, sizeof(string), "Score: %i",GetPlayerScore(playerid));

Don't replace your thing with that but you will need to implement it in the line.

Or use this to help you out.

Код:
public OnPlayerCommandText(playerid,text[])
{
    if(!strcmp(cmdtext,"/score",true))
    {
        new string[128];
        format(string, sizeof(string), "Score: %i",GetPlayerScore(playerid));
        SendClientMessage(playerid, COLOR_ORANGE, string);
        return 1;
    }
    return 0;
}
Reply
#5

Quote:
Originally Posted by [UG]Daniel
Посмотреть сообщение
Lal.
Really? You need to fuck off this thread instead of posting useless bullshit like you just did.
EDIT: Thanks guys, rep for both of you when I can give more REP. I also put in GetPlayerMoney for the pMoney variable I have, and it worked, so thanks.
Reply
#6

Quote:
Originally Posted by NoahF
Посмотреть сообщение
Really? You need to fuck off this thread instead of posting useless bullshit like you just did.
EDIT: Thanks guys, rep for both of you when I can give more REP. I also put in GetPlayerMoney for the pMoney variable I have, and it worked, so thanks.
Hey fat ass, did I insult you? NO! ok I am now but I didnt before lol. You better calm down kiddo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)