08.08.2016, 08:16
Hello guys i just start making my new server and face a problem with a mysql , i download a R6 mysql plugin , and now start making a registration and login system , but got error this error :
i have included plugin into server.cfg and its shows successfully loaded , and also pawn include a_mysql
and here is my onplayerconnect account check code :
i haven't done samp coding long time but for me its seems everything okay do not know why mysql_format are undefined , please help
PHP код:
C:\Users\Winfows\Desktop\samp 037\gamemodes\GM.pwn(119) : error 017: undefined symbol "mysql_format"
C:\Users\Winfows\Desktop\samp 037\gamemodes\GM.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\Winfows\Desktop\samp 037\gamemodes\GM.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\Winfows\Desktop\samp 037\gamemodes\GM.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\Winfows\Desktop\samp 037\gamemodes\GM.pwn(120) : error 035: argument type mismatch (argument 1)
PHP код:
#include <a_samp>
#include <core>
#include <a_mysql>
#pragma tabsize 0
PHP код:
/////ACCOUNT CHECK//////////
new query[128];
GetPlayerName(playerid, Name[playerid], 24);
GetPlayerIp(playerid, IP[playerid], 16);
mysql_format(sqlconnect, query, sizeof(query),"SELECT `password`, `id` FROM `users` WHERE `username` = '%e' LIMIT 1", Name[playerid]);
mysql_query(sqlconnect, query, "OnAccountCheck", "i", playerid);