SA-MP Forums Archive
Display Score..? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Display Score..? (/showthread.php?tid=152357)



Display Score..? - Ihsan_Cingisiz - 03.06.2010

Hello, the score doesn't display i only see In-Game
Human Score :
Zombie Score :

This is the script
Quote:

if(strcmp("/score", cmdtext, true, 10) == 0)
{
new string[128];
new string2[128];
format(string, sizeof(string), "Human Score :", pHumanScore);
format(string2, sizeof(string2), "Zombie Score :", pZombieScore);
SendClientMessage(playerid, COLOR_RED, "[=============| Zombie Outbreak - Score |=============]");
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_WHITE, string2);
SendClientMessage(playerid, COLOR_RED, "[=============| Zombie Outbreak - Score |=============]");
}




Re: Display Score..? - Fj0rtizFredde - 03.06.2010

pawn Код:
if(strcmp("/score", cmdtext, true, 10) == 0)
{
  new string[128];
  new string2[128];
  format(string, sizeof(string), "Human Score: %d", pHumanScore);
  format(string2, sizeof(string2), "Zombie Score: %d", pZombieScore);
  SendClientMessage(playerid, COLOR_RED,  "[=============| Zombie Outbreak - Score |=============]");
  SendClientMessage(playerid, COLOR_WHITE, string);
  SendClientMessage(playerid, COLOR_WHITE, string2);
  SendClientMessage(playerid, COLOR_RED,  "[=============| Zombie Outbreak - Score |=============]");
}
try that