20.07.2014, 16:32
pawn Код:
new sqlq[1024];
format(sqlq,sizeof(sqlq),"INSERT INTO `users`(`name`, `level`, `sex`, `number`, `team`, `rank`, `vip`, `money`, `bank`, `car1`, `car2`, `car3`, `skinp1`, `skinp2`, `skinp3`, `skinr`, `ban`, `ip`, `pass`) VALUES (%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%s,%s)",
getname(playerid),
PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pSex],
PlayerInfo[playerid][pNumber],
PlayerInfo[playerid][pTeamMember],
PlayerInfo[playerid][pTeamRank],
PlayerInfo[playerid][pVip],
PlayerInfo[playerid][pMoney],
PlayerInfo[playerid][pBank],
PlayerInfo[playerid][pCar1],
PlayerInfo[playerid][pCar2],
PlayerInfo[playerid][pCar3],
PlayerInfo[playerid][pSkinP1],
PlayerInfo[playerid][pSkinP2],
PlayerInfo[playerid][pSkinP3],
PlayerInfo[playerid][pSkinR],
PlayerInfo[playerid][pBan],
PlayerInfo[playerid][pIp],
GetPlayerString(playerid,"Password"));
mysql_query(sqlq);