30.11.2010, 18:54
it's ok if I do something like?
or something same with:
Код:
forward OnPlayerUpdateEx(playerid) public OnPlayerUpdateEx(playerid) { //some codes format(query, sizeof(query), "UPDATE players SET Password='%s' WHERE id=%d", PlayerInfo[playerid][pKey], PlayerInfo[playerid][pSQLID]); mysql_query(query); format(query, sizeof(query), "UPDATE players SET PlayerLevel='%d' WHERE id=%d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pSQLID]); mysql_query(query); // other codes return 1; }
Код:
forward OnPlayerUpdateEx(playerid) public OnPlayerUpdateEx(playerid) { //some codes format(query, sizeof(query), "UPDATE players SET Password='%s', PlayerLevel='%d' WHERE id=%d", PlayerInfo[playerid][pKey], PlayerInfo[playerid][pLevel],,PlayerInfo[playerid][pSQLID]); mysql_query(query); // other codes return 1; }