Szia
#include <a_samp>
#include <dini>
#define SERVER_USER_FILE \"bug/%s.ini\"
enum pInfo
{
bug,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new gPlayerLogged[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/bugreport\", cmdtext, true, 10) == 0) SendClientMessage(playerid, 0x0FFF, \"Hasznàlat: /bugreport <jelenteni való>\");
{
gPlayerLogged[playerid] = 0;
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE,name);
if(!dini_Exists(file))
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
dini_Create(file);
}
}
return 1;
[mod]CODE tagek kirakva.[/mod]