26.11.2016, 20:23
I want to take string "ImeClana" from table http://prntscr.com/dc5uaj and to compare with one string which i insert in script..But i dont know how to take string from table good..So i did on this way but isnt very well
Quote:
format(nikoopet, sizeof(nikoopet), "NIKO"); format(query, sizeof(query), "SELECT `ImeClana` FROM `organizacije` WHERE `Slot` = '%d' AND `ImeOrganizacije` = '%s'", slot,ImeOrganizacije(PlayerInfo[para1][Lider])); mysql_tquery(mysql, query, "", ""); cache_get_field_content(0, "ImeClana", niko); if(strcmp(niko, nikoopet)) return SCMF(playerid, -1, ""CRVENA"[SA:RP]:"BELA"Neko se vec nalazi na slotu %d!",slot); |