24.08.2015, 13:18
The usual way to work with player data is (example) (player = playerid):
But I guess that there is a way to write it like:
I've tried something like this:
But the compiler isn't like it.
So, the question is: how to make it work?
Thanks.
Код:
GetPlayerName(player, account[player][Name], MAX_PLAYER_NAME); GetPlayerIp(player, account[player][IP], 16); format(some_string, 128, "Player: %s. And his IP: %s", account[player][Name], account[player][IP]); SendClientMessageToAll(-1, some_string);
Код:
GetPlayerName(player, account.player.Name, MAX_PLAYER_NAME); GetPlayerIp(player, account.player.IP, 16); format(some_string, 64, "Player: %s. His IP is:", account.player.Name, account.player.IP); SendClientMessageToAll(-1, some_string);
Код:
#define account.%0.Name account[%0][Name] #define account.%0.IP account[%0][IP]
So, the question is: how to make it work?
Thanks.