11.10.2014, 18:25
I've been trying to find what the error is in here but I can't find it. I am getting the error at the end on the line that says mysql_query.
I've also tried using this but I get the same error, no luck at all.
Код:
if(dialogid == DIALOG_ATITLE && response) { new giveplayerid; new name[MAX_PLAYER_NAME]; new string[128]; new number; number = PlayerInfo[playerid][pBadgeNum]; if(IsPlayerConnected(giveplayerid)) { format(string, sizeof(string), "%s", inputtext); TextDrawSetString(Textdraw7, string);; new query[128]; new rank[64]; new division[64]; new employer[64]; GetPlayerFactionInfo(playerid, rank, division, employer); mysql_query("INSERT INTO leoreports (`ID`, `oname`, `obadge`, `odepartment`, `rtitle`) VALUES (\0, '%s', '%i', '%s', '%s')", GetPlayerNameEx(playerid), number, employer, strval(string)); } }
Код:
format(query, sizeof(query), "INSERT INTO leoreports VALUES (\0, '%s', '%d', '%s', '%s')", INVALID_LEOID_ID, GetPlayerNameEx(playerid), number, employer, strval(string)); mysql_query(query);