29.09.2012, 16:35
Quote:
Код:
CMD:skill(playerid,params[]){ new pname[24]; new query[300]; GetPlayerName(playerid,pname,sizeof(pname)); PlayerInfo[playerid][pRobberskill]++; format(query, sizeof(query), "UPDATE playerdata SET copsskill=%d WHERE user='%s'", PlayerInfo[playerid][pRobberskill], pname); mysql_query(query); return 1; } |
Код:
CMD:skill(playerid,params[]){ new pname[24]; new query[90]; GetPlayerName(playerid,pname,sizeof(pname)); format(query, sizeof(query), "UPDATE playerdata SET copsskill=%d WHERE user='%s'", PlayerInfo[playerid][pRobberskill]+1, pname); mysql_query(query); return 1; }