HELP ME
#1

When I Compile I Got Error In This Line :/ How To Fix It?
error 035: argument type mismatch (argument 1)
PHP код:
    if(!strcmp(dini_Int(GMPassFile(), "Password"),num_hash(params),false)) 
Reply
#2

Hashed passwords are in numbers / integers. They are not strings. You use strcmp to compare 2 strings. Something like this would fix it:

Код:
if(PlayerInfo[playerid][pPassword] == num_hash(params))
Replace the if(PlayerInfo[playerid][pPassword] with what variable you use to store the password.

EDIT: Or you can use
Код:
if(dini_Int(GMPassFile(), "Password") == num_hash(params))
if you don't use a variable to store the player password.
Reply
#3

More Error Pop UP
C:\Scripting\EBoss1.pwn(3223) : error 036: empty statement
C:\Scripting\EBoss1.pwn(3230) : warning 225: unreachable code
C:\Scripting\EBoss1.pwn(3230) : error 029: invalid expression, assumed zero
C:\Scripting\EBoss1.pwn(3230) : warning 215: expression has no effect
C:\Scripting\EBoss1.pwn(3230) : error 001: expected token: ";", but found "return"
Reply
#4

Quote:
Originally Posted by dh240473
Посмотреть сообщение
More Error Pop UP
C:\Scripting\EBoss1.pwn(3223) : error 036: empty statement
C:\Scripting\EBoss1.pwn(3230) : warning 225: unreachable code
C:\Scripting\EBoss1.pwn(3230) : error 029: invalid expression, assumed zero
C:\Scripting\EBoss1.pwn(3230) : warning 215: expression has no effect
C:\Scripting\EBoss1.pwn(3230) : error 001: expected token: ";", but found "return"
Which one you use? first or second?

And paste me the line 3223 and 3230.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)