Mysql Problem
#1

Hello I have got'a problem my problem is ı created a command and ı create a table in mysql and ı added the mysql information on the pawn but the mode dont register the information the mysql here is the codes

Код:
mysql_fetch_field_row(szReturn, "Tester", g_MySQLConnections[0]);
					PlayerInfo[extraid][pTester] = strval(szReturn);
Код:
CMD:settester(playerid, params[]) {
	if(PlayerInfo[playerid][pTestery] >= 1) {
		if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 0)
	    {
	        SendClientMessage(playerid,COLOR_WHITE, "Admin olarak işbaşında değilsin. Admin komutlarına erişmek iзin işbaşı yapman gerekiyor. işbaşı yapmak iзin /aduty komutunu kullan.");
			return 1;
	    }
		new
			iLevel,
			iTarget;

		if(sscanf(params, "ud", iTarget, iLevel))
			return SendClientMessage(playerid, COLOR_GREY, "{FFFFFF}[{FF0000}@{FFFFFF}] KULLANIM: /sethelper [Oyuncu ID/İsim] [level]");

		if(iLevel <= -1 || iLevel >= 7)
		    return SendClientMessage(playerid, COLOR_GREY, "Yardimci levelleri 1'den başlar 5'de biter.");

		if(iTarget != INVALID_PLAYER_ID) {
		    if(PlayerInfo[iTarget][pAdmin] > 0)
		        return SendClientMessage(playerid, COLOR_GREY, "Bir admini yardimci yapamazsın.");

			if(iLevel >= 6 && PlayerInfo[playerid][pTestery] < 1)
			    return SendClientMessage(playerid, COLOR_GREY, "Birine 5 Level yardimcilik verebilmek iзin Tester Yonetim olman gerek.");

			PlayerInfo[iTarget][pTester] = iLevel;

			new
			    szMessage[64];


			if(PlayerInfo[iTarget][pAcceptReport] > 0)
			    PlayerInfo[iTarget][pAcceptReport] = 0;

			format(szMessage, sizeof(szMessage), "%s adlı oyuncuyu %d level yardimci yaptın.", GetPlayerNameEx(iTarget), iLevel);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);

			format(szMessage, sizeof(szMessage), "%s seni %d level yardimci yaptı.", GetPlayerNameEx(playerid), iLevel);
			SendClientMessage(iTarget, COLOR_WHITE, szMessage);
		}
		else SendClientMessage(playerid, COLOR_GRAD2, "Geзersiz oyuncu.");
	}
	else SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{FF0000}@{FFFFFF}] Bu komutu kullanma yetkiniz yok!");
	return 1;
}
http://prntscr.com/dap4oj
Reply
#2

For starters, you're not inserting the data into the database.
Reply
#3

Quote:
Originally Posted by itsCody
Посмотреть сообщение
For starters, you're not inserting the data into the database.
how can i add into database ?
Reply
#4

I Fixed İt thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)