new admin = PlayerInfo[playerid][pAdmin];
new kills = PlayerInfo[playerid][pKills];
new playername[MAX_PLAYER_NAME];
new pIP[16];
new string[1200];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerIp(playerid, pIP, sizeof(pIP));
format(string, sizeof(string), "{FFFFFF}Your Name: {00FF28}%s\n{FFFFFF}IP: {00FF28}%s\n{FFFFFF}Money: {00FF28}%i\n{FFFFFF}Admin: {00FF28}%i\n{FFFFFF}Kills: {00FF28}%i", playername, pIP, GetPlayerMoney(playerid), admin, kills);
SendClientMessage(playerid, WDOG_COLOR, string);
|
So the problem is that i maded so when you spawn its gonna show your name, admin, kills, and etc..
and show your ip. But there is the problem, the ip. Look at the code: Код:
new admin = PlayerInfo[playerid][pAdmin];
new kills = PlayerInfo[playerid][pKills];
new playername[MAX_PLAYER_NAME];
new pIP[16];
new string[1200];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerIp(playerid, pIP, sizeof(pIP));
format(string, sizeof(string), "{FFFFFF}Your Name: {00FF28}%s\n{FFFFFF}IP: {00FF28}%s\n{FFFFFF}Money: {00FF28}%i\n{FFFFFF}Admin: {00FF28}%i\n{FFFFFF}Kills: {00FF28}%i", playername, pIP, GetPlayerMoney(playerid), admin, kills);
SendClientMessage(playerid, WDOG_COLOR, string);
How to fix it? And what causes the problem? |
|
Would you really? That may be true, but don't beg for rep. Take this post as a lesson:
https://sampforum.blast.hk/showthread.php?tid=416191 |