03.08.2013, 11:06
I have a problem, this does not return the correct string, just some weird stuff:
pawn Код:
enum a {
str[MAX_PLAYER_NAME];
}
new array[MAX_PLAYERS][a];
public OnPlayerConnect(playerid) {
GetPlayerName(playerid, array[playerid][str], MAX_PLAYER_NAME);
}
returnPlayerName(playerid) {
// Printing array[playerid][str] here gives the correct result!
return array[playerid][str]; // This does not return the correct thing.
}