Display Score..?
#1

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 |=============]");
}

Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)