[HELP]Function MYSQL .
#1

Hello guys, i have a problem to get a code from the player, who we see the image.




I want to get only with "Nb30Nu61" , I'm using this code to get :

Код:
#include <a_samp>
#include <a_mysql>



main () { print("ligado"); }

new MQ;

public OnGameModeInit() {
        MQ = mysql_connect("localhost", "host", "bancodedados", "senha");
	return 1;
}

public OnGameModeExit() {

	mysql_close(MQ);
	return 1;
}

public OnPlayerConnect(playerid) {
	new bola[128];
	cache_get_field_content(1, "Code_Recupera", bola);
	printf("testando  %s", bola); // 
	return 1;
}
but only printed this "testando" , I do not know if I'm making out correct or not , tell me , how I can get that code.

Obs : I using This Function correctly , here.

Thanks , Sorry bad Englesh .
Reply


Messages In This Thread
[HELP]Function MYSQL . - by shittt - 14.03.2014, 22:03
Re: [HELP]Function MYSQL . - by Vince - 14.03.2014, 23:09
Re: [HELP]Function MYSQL . - by PowerPC603 - 14.03.2014, 23:10
Re: [HELP]Function MYSQL . - by shittt - 15.03.2014, 01:19

Forum Jump:


Users browsing this thread: 2 Guest(s)