Jump to content
  • 0

2 probleme.


amaru

Question

Am editat comanda /mdc sa arate numarul de telefon si varsta si nu arata nimic in joc.

                                               

format(string, sizeof(string), "Varsta : %s", PlayerInfo[giveplayerid][pAge]);
						SendClientMessage(playerid, COLOR_GRAD2,string);
						format(string, sizeof(string), "Phone : %s", PlayerInfo[giveplayerid][pPnumber]);
						SendClientMessage(playerid, COLOR_GRAD2,string)

	}
Si am luat de pe .com include-ul cu chat color al lui eXtr1ke si nu merge. am modificar si la Realchat
if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "%s", text);
	    ChatColor(20.0, playerid,string);
		return 0;
	}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

%s - este folosit pentru un mesaj, cifre, litere, tu trebuie sa folosesti %i:

format(string, sizeof(string), "Varsta : %i", PlayerInfo[giveplayerid][pAge]);
                  SendClientMessage(playerid, COLOR_GRAD2,string);
                  format(string, sizeof(string), "Phone : %i", PlayerInfo[giveplayerid][pPnumber]);
                  SendClientMessage(playerid, COLOR_GRAD2,string)
                  
   }

Si am luat de pe .com include-ul cu chat color al lui eXtr1ke si nu merge. am modificar si la Realchat
if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "%s", text);
	    ChatColor(20.0, playerid,string);
		return 0;
	}
ce nu merge mai exact ? nu ai pus sa arate si cine a trimis mesajul ... trebuie
if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "%s: %s", sendername, text);
	    ChatColor(20.0, playerid,string);
		return 0;
	}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.