22.10.2013, 11:24
(
Последний раз редактировалось BizzyD; 22.10.2013 в 13:42.
)
WORKING NOW! DELETE THREAD PLEASE
strcat(QueryFinal, "INSERT INTO `playerdata`(`Username`, `Password`, `AdminLevel`, `HelperLevel`, `Level`, `WaterBottle`, `Faction`, `Rank`, `Leader`, `Team`, `FishingNet`, `Boar`, `Note`, `Rope`, `Fruit`, `Boarmeat`, `FishingRod`, `Skin`, `Sex`, `Water`, `Fish`, `Heroin`, `FireMatches`, `FireWood`,");
format(Query, sizeof(Query), "`Berry`, `Whiskey`, `Mask`, `Clothes`, `FishDone`, `R-Muted`, `Muted`, `aJailed`, `JailTime`, `RespectPoints`, `CoOwner`, `Skill`, `WalkieTalkie`, `APP`, `GunID`, `GUNMAT`, `GUNMAT2`, `GunID2`, `GunID3`, `GunID4`, `GunID5`, `Ammo`, `Ammo2`, `Ammo3`, `Ammo4`, `Ammo5`,");
strcat(QueryFinal, Query);
format(Query, sizeof(Query), "`Pos_X`, `Pos_Y`, `Pos_Z`, `Vip`, `WalkieBroken`, `ChoosenTeam`, `RelationShip`, `RelationWith`, `Interior`, `Warnings`, `Slots`, `SlotsFree`, `BackPack`, `Banned`, `IP`)");
strcat(QueryFinal, Query);
format(Query, sizeof(Query), "VALUES('%s',MD5('%s'),0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'%s')", ReturnPlayerName(playerid), password, IP); strcat(QueryFinal, Query);
public RegisterPlayer(playerid, password[])
{
new Query[500],IP[20];
GetPlayerIp(playerid, IP, 20);
format(Query, sizeof(Query), "INSERT INTO `playerdata` (`Username`,`Password`,`IP`) VALUES ('%s',MD5('%s'),'%s')" ,ReturnPlayerName(playerid), password, IP);
FirstSpawn[playerid] = 1;
mysql_function_query(conn, Query, false, "OnQuerySend", "", playerid, password); // 67
return 1;
}