SA-MP Forums

Go Back   SA-MP Forums > Non-English > Old Languages Archive > Français/French

 
 
Thread Tools Display Modes
Old 27/10/2011, 08:04 AM   #1
Enzo_Oliveiras
Little Clucker
 
Join Date: Oct 2011
Posts: 23
Reputation: 1
Default Soucie avec SQL

[FONT="Trebuchet MS"]Bonjour, j'ai fait se code seulement il m'affiche toujours : VOTRE COMPTE NESITE PAS, même quand j'ai rémplir une ligne;;

Merci de m'aidé..[/FONT]

new sUsername[MAX_PLAYER_NAME],
sQuery[256];

GetPlayerName(playerid, sUsername, sizeof(sUsername));
format(sQuery, sizeof(sQuery), "SELECT * FROM `membres` WHERE `Nom`='%s' LIMIT 1;", sUsername);
mysql_query(sQuery);
mysql_store_result();

if (mysql_num_rows() == 1)
SendClientMessage(playerid, 0x1D76E2FF, "Votre compte existe !");
else
SendClientMessage(playerid, 0x1D76E2FF, "Votre compte n'existe pas !");

mysql_free_result();
Enzo_Oliveiras is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
YOu don't avec key Alex Deregio Help Archive 0 15/02/2011 04:25 PM


All times are GMT. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.