05.10.2016, 11:49
Don't use #define for DIALOG ID to avoid ID collusion,
instead, I suggest that you use
you typed this
*please remove that and change it to
also change this
to this
finally if you want to set a tag to the data-holding file use this
instead, I suggest that you use
PHP код:
enum {
DIALOG_REGISTER,
DIALOG_LOGIN ,
DIALOG_SUCCESS_1,
DIALOG_SUCCESS_2
}
PHP код:
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
PHP код:
UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
PHP код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
PHP код:
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
PHP код:
INI_SetTag(File, "data"):

