10.01.2015, 23:52
PHP код:
format(g_szBuffer, sizeof g_szBuffer,
"UPDATE `"MySQL_PLAYERS_TABLE"` SET \
\
`SubLeader` = '%i' \
\
WHERE pName = '%s'",
fChosen[playerid],
id);
mysql_query(g_szBuffer);
format(frakcija[fChosen[playerid]][fLeader], MAX_PLAYER_NAME+1, "%s", id);
format(zinute, sizeof(zinute), "{d8a9ff}•{ffffff} lyderiш vadovas {d8a9ff}%s{ffffff} paskyrл naujаjб „{d8a9ff}%s{ffffff}“ frakcijos sub-lyderб {d8a9ff}%s{ffffff} !", getPlayerName(playerid), frakcija[fChosen[playerid]][fName], id);
SendClientMessageToAll(-1, zinute);
updateFractionLabel(fChosen[playerid]);
saveFractions(fChosen[playerid]);
fAction[playerid] = -1;
fChosen[playerid] = -1;