score string.
#3

Well, first of all the "pscore" should be a variable not a string, and it's not defined when printing it. And the %s should be %d. Plus there is no need for it anyway, like so:

pawn Код:
if(strcmp(cmdtext, "/score", true) == 0)
    {
      new string[128];
       format(string, sizeof(string), "You're current score is: %d", GetPlayerScore(playerid));
       SendClientMessage(playerid, 0xFFFFFFFF, string);
       return 1;
    }
Reply


Messages In This Thread
score string. - by [mad]MLK - 18.08.2009, 13:49
Re: score string. - by Weirdosport - 18.08.2009, 13:51
Re: score string. - by JaTochNietDan - 18.08.2009, 13:51

Forum Jump:


Users browsing this thread: 3 Guest(s)