Little bit of help would be nice
#1

Well I basically made this rather nooby command but it kinda works except for that it says only says "Race", am I using "Race: %s" wrong or something which I strongly believe I do, but please inform me and tell me how to fix it, thanks.


Код:
COMMAND:stats(playerid, params[])
{

       new string[128];
       if (gTeam[playerid] == 2)gTeam="Vampire";
       if (gTeam[playerid] == 1)gTeam="Human";
       format(string, sizeof(string), "Race: %s");
       SendClientMessage(playerid,0xFFFFFFAA,string);
       return 1;
Reply
#2

From this
pawn Код:
format(string, sizeof(string), "Race: %s");
To this.
pawn Код:
format(string, sizeof(string), "Race: \"%s\" ");
Reply
#3

pawn Код:
COMMAND:stats(playerid, params[])
{

       new string[128];
       if (gTeam[playerid] == 2) return gTeam="Vampire";
       if (gTeam[playerid] == 1) return gTeam="Human";
       format(string, sizeof(string), "Race: %s",gTeam[playerid]);
       SendClientMessage(playerid,0xFFFFFFAA,string);
       return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)