`Married` varchar(24) NOT NULL,
cache_get_field_content(0, "Married", tmp), pInfo[playerid][Married] = strval(tmp);
Married with: %s pInfo[playerid][Married]
strcat(Query,"UPDATE `users` SET `Married` = '%s',
What's your MySQL version?
@EDIT Why you're using string for integer? |
pInfo[playerid][Married] = strval(tmp)
strval function convert STRING to INTEGER. See more: Strval. If Married constant is string use this: cache_get_field_content(0, "Married", pInfo[playerid][Married]) |
format(str, sizeof(str),"%s: %s (%s) - %s", GetAdminName(i), PlayerName(i), pInfo[i][Married], DUTY_STR);
SendClientMessage(playerid, COLOR, str);
format(str, sizeof(str),"%s: %s (%d) - %s", GetAdminName(i), PlayerName(i), pInfo[i][Married], DUTY_STR); SendClientMessage(playerid, COLOR, str);
Код:
format(str, sizeof(str),"%s: %s (%d) - %s", GetAdminName(i), PlayerName(i), pInfo[i][Married], DUTY_STR); SendClientMessage(playerid, COLOR, str); |
new marr[24]; cache_get_field_content(0, "Married", marr); format(str, sizeof(str),"%s: %s (%s) - %s", GetAdminName(playerid), PlayerName(playerid), marr, DUTY_STR); SendClientMessage(playerid, COLOR, str);
cache_get_field_content(0, "Married", pInfo[playerid][Married], connectionHandle /* change this */, 24); format(str, sizeof(str),"%s: %s (%s) - %s", GetAdminName(playerid), PlayerName(playerid), pInfo[playerid][Married], DUTY_STR); SendClientMessage(playerid, COLOR, str);
`Married` varchar(35) NOT NULL,
Код:
`Married` varchar(35) NOT NULL, Else it doesn't work, Do you save pInfo[playerid][Married] in OnPlayerdisconnect? And do you load it in OnPlayerConnect by Loading Player's data? |