28.06.2012, 16:50
while having this code:
I had this error
Undefined Symbol mysql_query
pawn Код:
CreateClan(toplayer,name[],shortname[])
{
new string[256];
format(string,sizeof(string),"INSERT INTO clans (name, shortname) VALUES ('%s','%s')",name,shortname);
mysql_query(string);
mysql_store_result();
new id = mysql_insert_id();
PlayerInfo[toplayer][pClan] = id;
PlayerInfo[toplayer][pClanRank] = 3;
LoadClan(id);
mysql_free_result();
return id;
}
Undefined Symbol mysql_query