PDA

View Full Version : HELP ME


dh240473
28/12/2015, 02:19 PM
When I Compile I Got Error In This Line :/ How To Fix It?
error 035: argument type mismatch (argument 1)
if(!strcmp(dini_Int(GMPassFile(), "Password"),num_hash(params),false))

SmoW
28/12/2015, 02:41 PM
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.

dh240473
28/12/2015, 04:08 PM
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"

SmoW
28/12/2015, 04:17 PM
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.