03.01.2019, 16:50
OK i updated to r39-6. Why not r40 because in r40 a lot of functions is rennamed and some corrected, so i dont want to rewrite a lot of lines in my code.
Now i have errors:
How i would change my code?
Now i have errors:
Quote:
error 017: undefined symbol "mysql_store_result" error 017: undefined symbol "mysql_fetch_row_format" error 017: undefined symbol "mysql_free_result" |
Код:
public OnJobInfoLoad(playerid) { mysql_store_result(); new name[MAX_PLAYER_NAME], ispejimai, rang, pradirbo, x, resultline[40], str[170], fstr[3500]; while(mysql_fetch_row_format(resultline)) { sscanf(resultline,"p<|>s[24]ddd",name, ispejimai, rang, pradirbo); x++; format(str, sizeof(str),"%d. {00A5FF}%s\t\t {FAFAFA}Įspėjimai {FF0019}%d/3\t\t {FAFAFA}Rangas {FFDC00}%d\t\t {FAFAFA}Љiandien pradirbo {00D7FF}%d minučių{FAFAFA}\n", x, name, ispejimai, rang, pradirbo); strcat(fstr, str); } ShowPlayerDialog(playerid,DIALOG_DARBUOTOJAI,DIALOG_STYLE_MSGBOX,"Darbuotojai",fstr,"Gerai",""); mysql_free_result(); }