Need help with bank system
#1

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! ");
Reply
#2

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! ");
Reply
#3

thanks
Reply
#4

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
Reply
#5

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

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

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

thanks dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)