SA-MP Forums Archive
File or function not fund - 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: File or function not fund (/showthread.php?tid=187378)



File or function not fund - Hornet600 - 02.11.2010

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <mysql>
#include <zcmd>

main ()
{
    print("");
}


enum users()
{
    Name[MAX_PLAYER_NAME],
    Password[32],
}
new playerinfo[MAX_PLAYERS][users];

#define MYSQL_HOST  "localhost"
#define MYSQL_USER  "root"
#define MYSQL_PASS  ""
#define MYSQL_DB    "testphp"


public OnGameModeInit()
{
    mysql_init();
    mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_DB);
    return 1;
}



public OnGameModeExit()
{
    mysql_close();
    return 1;
}

command(register, playerid, params[])
{
    new string [128];
    format(string, sizeof(string), "INSERT INTO Users (Name,Password) VALUES ('%s','%s')", playerinfo[playerid][Name], Password);
    mysql_query(string);
}
This gamemode its compiling im using it for PHP tests buts i get the file or function not fund im using strickens mysql plugin. Something is wrong on the gamemode? i added the pluging to server sfg and nothing


Re: File or function not fund - Miguel - 02.11.2010

Did you add sscanf 2.0 plugin to the folder?


Re: File or function not fund - Hornet600 - 02.11.2010

Is not the sscanf2 because i just added that guessing i was need it but not i deleted it tested and happens the same thing


Re: File or function not fund - Hornet600 - 02.11.2010

Problem solved i just downloaded the plugin again and install and works