03.10.2014, 13:43
Can somebody tell me why the variables doesn't work? I mean, %s etc.
The message says:
has connected to the server! ID: 4 IP: 57
The message says:
has connected to the server! ID: 4 IP: 57
pawn Код:
new IP[16], name[MAX_PLAYER_NAME];
GetPlayerIp(playerid, IP, sizeof(IP));
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, COLOR_LIGHTRED, "The server is now retrieving some information from the database. This usually takes around 10 seconds.");
LoadPlayerTextDraws(playerid);
new amessage[256];
format(amessage, sizeof(amessage), "%s has connected to the server! ID: %d IP: %d", GetNameWithSpace(playerid), playerid, IP);
SendMessageToAdmins(amessage, COLOR_LIGHTRED);