PDA

View Full Version : Help with couple errors


Erno.
28/07/2015, 05:17 PM
stock Tabu_GivePlayerWeapon(playerid,weaponid,ammo)
{
new
eile[350],
rows;

format( eile, sizeof( eile ), "SELECT * FROM `AC` WHERE `WeaponID` = %d AND `ID` = %d", weaponid, pInfo[ playerid ][ pMySQLID ] );
mysql_query( eile );
mysql_store_result( );
rows = mysql_num_rows();


Dreamlife.pwn(117) : error 035: argument type mismatch (argument 1)
Dreamlife.pwn(118 ) : error 017: undefined symbol "mysql_store_result"
Dreamlife.pwn(119) : error 017: undefined symbol "mysql_num_rows"

Fancy
28/07/2015, 05:24 PM
stock Tabu_GivePlayerWeapon(playerid,weaponid,ammo)
{
new
eile[350],
rows;

format( eile, sizeof( eile ), "SELECT * FROM `AC` WHERE `WeaponID` = %d AND `ID` = %d", weaponid, pInfo[ playerid ][ pMySQLID ] );
mysql_query( eile );
mysql_store_result( );
rows = mysql_num_rows();


Dreamlife.pwn(117) : error 035: argument type mismatch (argument 1)
Dreamlife.pwn(118 ) : error 017: undefined symbol "mysql_store_result"
Dreamlife.pwn(119) : error 017: undefined symbol "mysql_num_rows"

Can you highlight the error lines?

Erno.
28/07/2015, 05:26 PM
mysql_query( eile );
mysql_store_result( );
rows = mysql_num_rows();

One thing probably very important I forgot to say that I changed a plugin from g_stylez to blueg, probably all arguments isin't in right form can u say how to change in right and leave same funcionality?