Quote:
Originally Posted by 0rb
You have to assign something to %s. Do you think Pawn is smart enough to guess that your %s should be a player name?
pawn Код:
new str[18 + MAX_PLAYER_NAME]; GetPlayerName(playerid, str, MAX_PLAYER_NAME); format(str, sizeof str, "xadmin/Users/%s.ini", str);
if(dini_Exists(str))
But this will silently crash your server if a player have a name containing forbidden files characters.
|
Why do you do:
pawn Код:
new str[18 + MAX_PLAYER_NAME];
24 (MAX_PLAYER_NAME) + 18 = 42 but a player's name can only be max 24 characters..