29.05.2016, 09:50
i have a error mysql compiling...
Hear :
I use mysql r39-5
Код:
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48444) : error 017: undefined symbol "mysql_store_result" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48445) : error 017: undefined symbol "mysql_num_rows" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48447) : error 017: undefined symbol "mysql_free_result" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48454) : error 017: undefined symbol "mysql_fetch_row" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48456) : error 017: undefined symbol "mysql_free_result" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48467) : error 017: undefined symbol "mysql_store_result" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48468) : error 017: undefined symbol "mysql_num_rows" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48470) : error 017: undefined symbol "mysql_free_result" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48477) : error 017: undefined symbol "mysql_fetch_row" C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48479) : error 017: undefined symbol "mysql_free_result"
Код:
stock MySQLCheckTag(TagName[]) { new query[128], escstr[30]; mysql_real_escape_string(TagName, escstr); format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `ClanTAG` = '%s'", escstr); mysql_query(handle, query); mysql_store_result(); if (mysql_num_rows() == 0) { mysql_free_result(); return 0; } else { new strid[32]; new intid; mysql_fetch_row(strid); intid = strval(strid); mysql_free_result(); return intid; } } stock MySQLCheckClan(ClanName[]) { new query[128], escstr[30]; mysql_real_escape_string(ClanName, escstr); format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `ClanName` = '%s'", escstr); mysql_query(handle, query); mysql_store_result(); if (mysql_num_rows() == 0) { mysql_free_result(); return 0; } else { new strid[32]; new intid; mysql_fetch_row(strid); intid = strval(strid); mysql_free_result(); return intid; } }