11.01.2014, 11:15
I putted in below
But it changed nothing, they player still spawn at 0,0,0 when he register and enter in the game for the first time.
Other ideas ?
My mysql log:
Код:
case 2: //register dialog { if(!response) return Kick(playerid); //if they clicked Quit, we will kick them if(strlen(inputtext) < 6) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "S'enregistrer", "Ton mot de passe doit faire plus de 6 caractиres !", "S'enregistrer", "Quitter"); //strlen checks a lenght of a string. so if player types their password that is lower than 6, we tell them; Your password must be at least 6 characters long! WP_Hash(pInfo[playerid][Password], 129, inputtext); //hashing inputtext mysql_format(mysql, query, sizeof(query), "INSERT INTO `joueurs` (`Username`, `Password`, `IP`, `Admin`, `VIP`, `Argent`, `posX` ,`posY`, `posZ`, `Interieur`, `World`, `Skin`) VALUES ('%e', '%s', '%s', 0, 0, 1000, 1527.5634, -1738.9218, 13.5469, 0, 0, 26)", Name[playerid], pInfo[playerid][Password], IP[playerid]); //Now let's create a new row and insert player's information in it mysql_tquery(mysql, query, "", ""); //let's execute the query SetSpawnInfo( playerid, 0, pInfo[playerid][Skin], pInfo[playerid][posX],pInfo[playerid][posY],pInfo[playerid][posZ], 0.0, 0, 0, 0, 0, 0, 0 ); }
But it changed nothing, they player still spawn at 0,0,0 when he register and enter in the game for the first time.
Other ideas ?
My mysql log:
Код:
mysql_format - connection: 1, len: 512, format: "INSERT INTO `joueurs` (`Username`, `Password`, `IP`, `Admin`, `VIP`, `Argent`, `posX` ,`posY`, `posZ`, `Interieur`, `World`, `Sk..." [13:27:57] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO `joueurs` (`Username`, `Password`, `IP`, `Admin`, `V", callback: "(null)", format: "(null)"