2 Bad Issues :( - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Bad Issues :( (
/showthread.php?tid=231501)
2 Bad Issues :( -
Rokzlive - 25.02.2011
1. My Server log is showing this.
Code:
[16:01:07] Script[gamemodes/bus.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Ok, my server is working perfectly except for one thing, saving. It doe snot have any compile errors. It just does not save. I dont know whats wrong!
Heres my save.
pawn Code:
public Save(playerid)
{
if(playerdata[playerid][logged]==1)
{
new svname[25], querys[600];
GetPlayerName(playerid,svname,sizeof(svname));
format(querys,sizeof(querys),"UPDATE `accounts` SET `level`='%d',`Joins`='%d',`Kills`='%d',`Kicks`='%d',`Deaths`='%d'",playerdata[playerid][level],playerdata[playerid][Joins],playerdata[playerid][Kills],playerdata[playerid][Kicks],playerdata[playerid][Deaths], svname);
mysql_query(querys);
}
return 1;
}
Do i have some code wrong? Am i telling it to update a table that does not exist or what? Its done this on every gm ive made. :S
Re: 2 Bad Issues :( -
Rokzlive - 25.02.2011
NVM about the save issue i fixed it but i still have the bad entry point issue.
Re: 2 Bad Issues :( -
Rokzlive - 25.02.2011
Plz help :S