File or function not fund
#1

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
Reply
#2

Did you add sscanf 2.0 plugin to the folder?
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)