HELP ME - 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: HELP ME (
/showthread.php?tid=597241)
HELP ME -
dh240473 - 28.12.2015
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))
Re: HELP ME -
SmoW - 28.12.2015
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.
Re: HELP ME -
dh240473 - 28.12.2015
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"
Re: HELP ME -
SmoW - 28.12.2015
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.