SA-MP Forums Archive
[Problem]GeForce UCP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Problem]GeForce UCP (/showthread.php?tid=411800)



[Problem]GeForce UCP - filipkozina - 30.01.2013

Game Mode : GeForce
Problem : I have problem when i connect to the game it say "This username is not approved by UCP" (on croatian i translate it)

Part of Script :
Code:
case EXIST_PLAYER_QUERY:
	    {
            mysql_store_result();
            new playername[MAX_PLAYER_NAME];
            if(mysql_num_rows() == 0) {
            	if(!IsPlayerConnected(extraid)) return mysql_free_result();
            	SendClientMessage(extraid, COLOR_RED, "This username is not approved by UCP. Visit www.ucp.Security-samp.com");
				Kick(extraid);
			}
			else
			{
			    mysql_retrieve_row();
			    new banned[1];
				mysql_get_field("banned", banned); PlayerInfo[extraid][pBanned] = bool:strval(banned);
                if(!IsPlayerConnected(extraid)) return mysql_free_result();

                GetPlayerName(extraid, playername, sizeof(playername));

                format(motd, sizeof(motd), DialogTexts[0],
				    playername,
					MAX_LOGIN_TIME*10);

				ShowPlayerDialog(extraid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "PRIJAVA", motd, "Login", "Cancel");
			}
            mysql_free_result();
		}
PLSSS HELP

Sry for bad english i am from Croatia =D