13.05.2013, 07:18
Alright so far this is what I have.
and I have to call it like so.
now I haven't been around for a while but I am pretty sure there's a much simpler way I've missed, like being able to return the value without having to format it into another string.
pawn Код:
stock GetAccountPath(playerid)
{
new Player[25];
new AccountName[50];
GetPlayerName(playerid, Player, sizeof(Player) );
format(AccountName,sizeof(AccountName),"\\Accounts\\%s.ini", Player);
return AccountName;
}
pawn Код:
new File[50];
format(File,sizeof(File),"%s",GetAccountPath(playerid) );
now I haven't been around for a while but I am pretty sure there's a much simpler way I've missed, like being able to return the value without having to format it into another string.