13.05.2014, 19:13
Quote:
|
Like where are you using this? What are your intentions with it.
Is it inside a command like this? Код:
CMD:whatever(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME], string[128]; //file[256];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
new tmp3[50]; GetPlayerIp(playerid,tmp3,50);
// MORE CODE OF COURSE
return 1;
}
|
pawn Код:
CMD:savestats(playerid, params)
{
if(Logged[playerid] != 1) return SendClientMessage(playerid, -1, "Not logged in");
SaveStats(playerid);
return 1;
}
pawn Код:
stock SaveStats(playerid)
{
new PlayerFile[150];
format(PlayerFile, sizeof(PlayerFile), "users/%s.ini", PlayerName(playerid));
dini_IntSet(PlayerFile, "Money", PlayerInfo[playerid][PMoney]);
}


