SA-MP Forums Archive
Need help with bank system - 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: Need help with bank system (/showthread.php?tid=541267)



Need help with bank system - 1fret - 10.10.2014

I just followed a tutorial https://sampforum.blast.hk/showthread.php?tid=284995 on how to make a bank system but i get these errors and im trying my best but fix them but the wont go
pawn Код:
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : warning 215: expression has no effect
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : error 001: expected token: ";", but found "-identifier-"
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : warning 215: expression has no effect
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : error 001: expected token: ";", but found "]"
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(629) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
if( !strcmp( params, PlayerInfo[playerid][BPassword], true ))
        {
            PlayerInfo[playerid]Loggedin] = 1; //line 629
            SendClientMessage(playerid, COLOR_BABYGREEN, "Thank you for logging in to your bank account! ");



Re: Need help with bank system - AdHaM612 - 10.10.2014

You forgot to put the "[" before "LoggedIn" , So it should be:
pawn Код:
if( !strcmp( params, PlayerInfo[playerid][BPassword], true ))
        {
            PlayerInfo[playerid][Loggedin] = 1; //line 629
            SendClientMessage(playerid, COLOR_BABYGREEN, "Thank you for logging in to your bank account! ");



Re: Need help with bank system - 1fret - 10.10.2014

thanks


Re: Need help with bank system - 1fret - 10.10.2014

another thing i got these errors
pawn Код:
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(651) : error 017: undefined symbol "WP_Hash"
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(651) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\other\samp server\gamemodes\CnR.pwn(651) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
P.S i already have whirlpool plugin

sorry for double post


Re: Need help with bank system - AdHaM612 - 10.10.2014

Show line number 651 , and some lines before and after it.


Re: Need help with bank system - 1fret - 10.10.2014

pawn Код:
WP_Hash( Buffer, sizeof Buffer, params );



Re: Need help with bank system - AdHaM612 - 10.10.2014

Make sure that you add this on top of your gamemode:
pawn Код:
native WP_Hash(buffer[],len,const str[]);



Re: Need help with bank system - 1fret - 10.10.2014

thanks dude