07.08.2018, 10:18
Code:
Script[gamemodes/(JGH).amx]: Run time error 19: "File or function is not found"
Code:
case 126:
{
if(!response) return Kick(playerid);
if(response)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new String[1000];
format(String,sizeof(String),"~g~Welcome~n~~y~%s",name);
GameTextForPlayer(playerid,String,1000,1);
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Player Data");
INI_WriteString(file,"Password",hashpass);
INI_WriteInt(file,"AdminLevel",0);
INI_WriteInt(file,"VIPLevel",0);
INI_WriteInt(file,"Money",0);
INI_WriteInt(file,"Scores",0);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"AdminLevel",0);
INI_WriteInt(file,"VIPLevel",0);
INI_WriteInt(file,"Money",10000);
INI_WriteInt(file,"Scores",0);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Time-Seconds",0);
INI_WriteInt(file,"Time-Minutes",0);
INI_WriteInt(file,"Time-Hours",0);
INI_WriteInt(file,"Banned",0);
INI_WriteInt(file,"Warlord-I",0);
INI_WriteInt(file,"Warlord-II",0);
INI_WriteInt(file,"Warlord-III",0);
INI_Close(file);
return 1;
}
}

