Jump to content
  • 0

Setpass...


xxSPEEDYxx

Question

Comanda asta imi da 2 errori pe care nu stiu de la ce pot fii:

CMD:setpass( PARAMS )
{
    if ( PlayerInfo[ playerid ][ Level ] >= 10 || IsPlayerAdmin( playerid ) )
	{
	    if ( PlayerInfo[ playerid ][ LoggedIn ] == 1 )
	    {
	        new Player, NewPass;
	        if ( sscanf( params, "us[128]", Player, NewPass ) ) return SendClientMessage( playerid, COLOR_ULTRARED, "USAGE: {33CCFF}/setpass [Player Name] [New Password]" );
			if ( NewPass < 6 || NewPass > 24 ) return SendClientMessage( playerid, COLOR_ULTRARED, "ERROR: Invalid password leght!" );

19694			if ( udb_Exists( strval( NewPass ) ) )
			{
19696				dUserSetINT( Player ).( "password_hash", udb_hash( NewPass ) );
				PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
	    	    FormatMSG( playerid, COLOR_YELLOW, "ACCOUNT: You have successfully set {FFFFFF}\"%s's\" {FFFF00}account password to {FFFFFF}\"%s\"", Player, NewPass );
			}
			else return SendClientMessage( playerid, COLOR_ULTRARED, "ERROR: This player doesnt have an account" );
		}
		else return SendLogClient( playerid );
	}
	else return SendLevel( playerid, 10 );
	return 1;
}
Errori:
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(19694) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(19696) : error 035: argument type mismatch (argument 1)

Fara reclama in semnatura!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Mda aia merge dar acum imi da error la linia asta:

19742: dUserSetINT( Player ).( "password_hash", udb_hash( NewPass ) ); //Am incercat si cu fila dar tot acel error imi da
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(19742) : error 035: argument type mismatch (argument 1)

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.