Help me in some errors :D
#1

hi i got like 5 errors in my gang fs
C:\Users\Youssef\Desktop\World of stunts v5 0.3z\filterscripts\TestGang.pwn(15 : error 035: argument type mismatch (argument 3)
C:\Users\Youssef\Desktop\World of stunts v5 0.3z\filterscripts\TestGang.pwn(18 : error 017: undefined symbol "mysql_init"
C:\Users\Youssef\Desktop\World of stunts v5 0.3z\filterscripts\TestGang.pwn(214) : error 017: undefined symbol "mysql_fetch_string"
C:\Users\Youssef\Desktop\World of stunts v5 0.3z\filterscripts\TestGang.pwn(241) : error 035: argument type mismatch (argument 3)
C:\Users\Youssef\Desktop\World of stunts v5 0.3z\filterscripts\TestGang.pwn(284) : error 035: argument type mismatch (argument 3)

ill show u the lines

Lines (153-160)

stock LoadPlayerInfo(playerid)
{
new Query[100]; format(Query, sizeof(Query), "SELECT * FROM users WHERE username = '%s';", GetPlayerNameEx(playerid));
mysql_query(Query);
mysql_store_result();
mysql_fetch_row(Query, "|");
sscanf(Query, "p<|>e<is[25]i>", PlayerInfo[playerid]);
}


Lines (186-192)

stock InitMysqlConnection()
{
mysql_init();
mysql_connect(DB_HOST, DB_USER, DB_PASS, DB_DB);
mysql_query(CREATE_DB_USERS);
mysql_query(CREATE_DB_GANGS);
}


Lines (209-216)

stock GetGangName(GangID)
{
new gName[100], Query[150]; format(Query, sizeof(Query), "SELECT name FROM gangs WHERE id = %d;", GangID);
mysql_query(Query);
mysql_store_result();
mysql_fetch_string(gName);
return gName;
}


Lines (234-245)

stock ShowGangInfoForPlayer(GangID, pID)
{
new tGid, tGname[100], tGOwner[25], Query[150], string[200];
format(Query, sizeof(Query), "SELECT * FROM gangs WHERE id = %d;", GangID);
mysql_query(Query);
mysql_store_result();
if(!mysql_num_rows()) return 0;
mysql_fetch_row(Query, "|");
sscanf(Query, "p<|>is[100]s[25]", tGid, tGname, tGOwner);
format(string, sizeof(string), "Id: %d - Name: %s - Owner: %s - Members: %d", tGid, tGname, tGOwner, GetGangMemberCount(GangID));
return ShowPlayerDialog(pID, DIALOG_GANG_INFO, DIALOG_STYLE_MSGBOX, "Cameltoe's Gang FS", string, "Cancel", "");
}


Lines ()

command(gangs, playerid, params[])
{
new gID, tGid, tGname[100], tGOwner[25], Query[200], string[1000]; // Change this depending on how many gangs you have.
if(sscanf(params, "u", gID))
{
format(Query, sizeof(Query), "SELECT * FROM gangs");
mysql_query(Query);
mysql_store_result();
while(mysql_fetch_row(Query, "|"))
{
if(!mysql_num_rows()) continue;
sscanf(Query, "p<|>is[100]s[25]", tGid, tGname, tGOwner);
format(string, sizeof(string), "%sId: %d - Name: %s - Owner: %s\r\n", string, tGid, tGname, tGOwner);
}
ShowPlayerDialog(playerid, DIALOG_GANG_INFO, DIALOG_STYLE_LIST, "Cameltoe's Gang FS", string, "Info", "Cancel");
}
else
{
if(!ShowGangInfoForPlayer(gID, playerid)) SendClientMessage(playerid, COLOR_YELLOW, "Invalid gang id.");
}
return 1;
}



I got Mysql i tried updating-downgrading-removing it tried all stuff and i gave up -_- so i said to myself lets share my prob. maybe someone had it and found its solution thnx anywayz
any more info u guys want ask me
Reply


Messages In This Thread
Help me in some errors :D - by youssefehab500 - 26.05.2014, 12:19
Re: Help me in some errors :D - by rappy93 - 26.05.2014, 13:44
Re: Help me in some errors :D - by youssefehab500 - 26.05.2014, 17:40
Re: Help me in some errors :D - by youssefehab500 - 26.05.2014, 17:45
Re: Help me in some errors :D - by Konstantinos - 26.05.2014, 17:46
Re: Help me in some errors :D - by youssefehab500 - 26.05.2014, 17:50
Re: Help me in some errors :D - by Konstantinos - 26.05.2014, 17:54
Re: Help me in some errors :D - by youssefehab500 - 26.05.2014, 17:59
Re: Help me in some errors :D - by Konstantinos - 26.05.2014, 18:04
Re: Help me in some errors :D - by youssefehab500 - 26.05.2014, 18:09

Forum Jump:


Users browsing this thread: 2 Guest(s)