Jump to content
  • 0

Erori


KoBBy

Question

2 answers to this question

Recommended Posts

  • 0
4 hours ago, KoBBy said:

Am incercat sa bag sistemul Click in GM Burned, dar imi da aceste erori.


(11420) : error 035: argument type mismatch (argument 2)
(11437) : error 035: argument type mismatch (argument 2)
(33227) : error 025: function heading differs from prototype
(33227) : error 025: function heading differs from prototype

Liniile:


		case DIALOG_LOGIN2: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				new tmppass[64];
				mysql_real_escape_string(inputtext, tmppass);
				OnPlayerLogin(playerid,MD5_Hash(tmppass)); // linia problema
			}
///
		case DIALOG_LOGIN3: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				new tmppass[64];
				mysql_real_escape_string(inputtext, tmppass);
				OnPlayerLogin(playerid,MD5_Hash(tmppass)); // ljnia problema
			}
///
function OnPlayerLogin(playerid,password[]) {  // Linia problema 
	new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    new qstr[100];
    new result[456];
    format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password);
    mysql_query(SQL,qstr);
    mysql_store_result();	
    if(mysql_num_rows() > 0) {
      	if(mysql_retrieve_row()) {
			GameTextForPlayer(playerid, "~y~Loading account...", 20000, 4);
			PlayerTextdraws(playerid);

 

case DIALOG_LOGIN2: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				OnPlayerLogin(playerid, inputtext);
			}
///
		case DIALOG_LOGIN3: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				OnPlayerLogin(playerid, inputtext);
			}
Link to comment
Share on other sites

  • 0
Acum 56 minute, RazvaN. a spus:

case DIALOG_LOGIN2: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				OnPlayerLogin(playerid, inputtext);
			}
///
		case DIALOG_LOGIN3: {
			if(!response) return Kick(playerid);
			if(strlen(inputtext)) {
				OnPlayerLogin(playerid, inputtext);
			}

Am rezolvat problema, acum cand intru pe server, dau login si dupa imi apare protocolul de inregistrare.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.