Run time error 19 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Run time error 19 (
/showthread.php?tid=657437)
Run time error 19 -
xRadical3 - 07.08.2018
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;
}
}
How to fix??
Re: Run time error 19 -
Lokii - 07.08.2018
did you add
if yes update you'r plugins
Re: Run time error 19 -
xRadical3 - 07.08.2018
I already had it.
The problem is the code:
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;
}
}