SA-MP Forums Archive
Score showing 0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Score showing 0 (/showthread.php?tid=447992)



Score showing 0 - NoahF - 02.07.2013

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);



Re: Score showing 0 - [UG]Daniel - 02.07.2013

Lal.


Re: Score showing 0 - Kirollos - 02.07.2013

GetPlayerScore ?


Re: Score showing 0 - KingyKings - 02.07.2013

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;
}



Re: Score showing 0 - NoahF - 02.07.2013

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.


Re: Score showing 0 - [UG]Daniel - 02.07.2013

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!