error 017: undefined symbol "INI_Remove"
INI_Remove(File);
No such thing as INI_Remove, there is something called INI_RemoveEntry which deletes a line in your .ini file.
So use fremove, can be found in Dutlis.inc. |
Yea use "fremove", it can be found inside Dutlis.inc. Download it.
|
fremove(File);
error 035: argument type mismatch (argument 1)
new string[128];
format(string, sizeof(string), "Users/%s.ini",name);
fremove(string);
Use it like this:
PHP код:
|
if (strcmp("/ChangeNick", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid,0xff0000ff,"айп бйгк осфйч лсу блгй мщреъ лйрей");
ShowPlayerDialog(playerid, DIALOG_CHANGE, DIALOG_STYLE_INPUT, "Change Nick", "длрс аъ длйрей щбшцерк мщреъ амйе", "щрд", "бйием");
return 1;
}
if(dialogid == DIALOG_CHANGE)
{
if(!response)
{
ShowPlayerDialog(playerid, DIALOG_SURE, DIALOG_STYLE_MSGBOX, "? аъд биез", "? аъд биез щаъд ма шецд мщреъ щн", "шецд", "ма шецд");
}
else
{
PlayerInfo[playerid][pPass] = DOF2_GetInt(UserPath(playerid), "Password");
PlayerInfo[playerid][pKills] = DOF2_GetInt(UserPath(playerid), "Kills");
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(UserPath(playerid), "Deaths");
DOF2_RemoveFile(UserPath(playerid));
DOF2_CreateFile(inputtext);
DOF2_SetInt(UserPath(playerid), "Password", PlayerInfo[playerid][pPass]);
DOF2_SetInt(UserPath(playerid),"Kills",PlayerInfo[playerid][pKills]);
DOF2_SetInt(UserPath(playerid),"Deaths",PlayerInfo[playerid][pDeaths]);
format(string,sizeof(string),"%s :щрйъ аъ щок бдцмзд мщн\nара цмн оск жд блгй ма мщлез аъ щок дзгщ\nца одщшъ езжеш ан дщн дзгщ",inputtext);
ShowPlayerDialog(playerid, DIALOG_NAME, DIALOG_STYLE_MSGBOX, "дщн щмк щерд бдцмзд", string, "айщеш", "");
GivePlayerMoney(playerid, Money);
Kick(playerid);
}
return 1;
}
If you don't know if it will work, test it. Also, fremove is part of file.inc - the default include, not any other third party include.
|
You don't need to run SA to test most server scripts - just start the server and see if that file disappears. I only reinstalled SA the other day after months of scripting without it.
|