19.01.2017, 11:38
Hello, I'm a little confused here
I made a gang mysql system, where one field to save the name of the member
I want to ask, how to add users without bumping into members who are already in the alley?
I made a gang mysql system, where one field to save the name of the member
I want to ask, how to add users without bumping into members who are already in the alley?
pawn Код:
stock AddMember(playerid, giveplayerid, gangid)
{
format(query, sizeof(query), "SELECT `GangMem` FROM `gang` WHERE `ID` = '%d'",gangid);
mysql_query(mysql, query);
cache_get_data(rows, fields);
if(rows)
{
cache_get_field_content(0, "GangMem", query);
sscanf(query, "p<,>sssss", gnamtemp[0],gnamtemp[1],gnamtemp[2],gnamtemp[3],gnamtemp[4]);