[Include] [INC] pBank |0.2 Released|
#21

The error is not on your script! It's on the include
Quote:

include\pBank.inc(231)

Check the line 231 of the file 'pBank.inc'
Reply
#22

Quote:
Originally Posted by YeahYeahYeahs
The error is not on your script! It's on the include
Quote:

include\pBank.inc(231)

Check the line 231 of the file 'pBank.inc'
Thanks

There was a missing ;
Reply
#23

Very Useful !
Reply
#24

Quote:

  • pBank_WireTransfer(Sender[],Receiver[],Amount)
    Let's you transfer funds from your account to somebody elses. See Example.pwn inside RAR for an example on how it works and how it is used.

in the Example.pwn there is no example on how to use WireTransfer... You should edit it/pos an example here plz.
BTW this script is god-like! I have made some /bankregister, /banklogin, /balance, /deposit, /withdraw, /bankquit commands with no problem! I have even made it so you can only use /banklogin, /balance, /deposit and /withdraw in 24/7s or in the federal government building and you can only use /bankregister and /bankquit in the federal government building.

This script is fuly customisable, I like it much. It helped alot my RP server...

Thanks again,

Cutter
Reply
#25

I am having problems with this script.
Here is my code:
Код:
	  if(strcmp(cmd,"/bankregister",true)==0)
	  {
	    new tmp[256];
	    new playername[256];
	    new string[256];
	    tmp=strtok(cmdtext,idx);
	    if(!strlen(tmp))
	    {
				SendClientMessage(playerid,DarkGreen,"USAGE : /bankregister [password]");
				return 1;
	    }
	    if(!PlayerToPoint(3.0,playerid,2316.6160,-7.5284,26.7422)) return SendClientMessage(playerid,AdminRed,"Must be near the bank counter!");
      if(PlayerStats[playerid][BankLogged]==1) return SendClientMessage(playerid,AdminRed,"You're already logged in!");
			GetPlayerName(playerid,playername,sizeof(playername));
	    new fstring[50];
	    format(fstring,50,"%s.xcu",udb_encode(playername));
			new create=pBank_CreateBankAccount(fstring,-100,tmp);
			if(create == -1)
			{
	  		SendClientMessage(playerid,DarkGreen,"You have already registered a bank account under this name!");
	  		SendClientMessage(playerid,DarkGreen,"Use /banklogin [password] to login into your bank account!");
	  		return 1;
			}
			format(string,sizeof(string),"You are now bankregistered under playername %s and password %s!",playername,tmp);
			SendClientMessage(playerid,DarkGreen,string);
		 	printf("%s registered a bank account with password %s",playername,tmp);
		 	return 1;
	  }
	  if(strcmp(cmd,"/banklogin",true)==0)
	  {
	    new tmp[256];
	    new playername[256];
	    tmp=strtok(cmdtext,idx);
	    if(!strlen(tmp))
	    {
	      SendClientMessage(playerid,DarkGreen,"USAGE : /banklogin [password]");
	      return 1;
	    }
			if(!PlayerToPoint(3.0,playerid,2316.6160,-7.5284,26.7422)) return SendClientMessage(playerid,AdminRed,"Must be near the bank counter!");
			if(PlayerStats[playerid][BankLogged]==1) return SendClientMessage(playerid,AdminRed,"You're already logged in!");
	    GetPlayerName(playerid,playername,sizeof(playername));
	    new fstring[50];
	    format(fstring,50,"%s.xcu",udb_encode(playername));
	    new login=pBank_LoginPlayerToBank(fstring,tmp);
	    if(login==-1)
	    {
	      SendClientMessage(playerid,DarkGreen,"Invalid Password!");
	      return 1;
	    }
	    if(login==0)
	    {
	      SendClientMessage(playerid,DarkGreen,"You have not registered a bank account yet under this name!");
	      SendClientMessage(playerid,DarkGreen,"Use /bankregister [password] to create a bank account!");
	      return 1;
	    }
	    PlayerStats[playerid][BankLogged]=1;
	    SendClientMessage(playerid,DarkGreen,"You have successfully logged in into your bank account!");
	    return 1;
	  }
/bankregister works, but after I use the command it says SERVER : Unknown Command
/banklogin doesn't work, it keeps saying invalid password...

Help?

This is an freakin annoying bug.. thx for helping

NOTE : This is not my script's identation... lol
Reply
#26

how do i fix line 231?
Код:
 dini_IntSet(tmp,"AccountBalance",total);
Reply
#27

It's a good script but I wanted something simialer of a bank..

You login from ordinary command and then you have access to your account... It's not like people will hack your account to get your server cash... (Understand this may cater for roleplay)


Do you think you could make a much more freeroamish one? were there isnt such restrictions as making a pass for bank ?? :C

But thanks anyways for the release
Reply
#28

it doesnt work...
can u upload it to solidfiles?
Reply
#29

I will definitely use it
Reply
#30

i saw thet:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    pBank_PlayerDisconnect("Pixels");
    //if your name isn't Pixels, too bad :D
    return 1;
}
in ur example script...
do i have to put the name of the player in the ("")
Reply
#31

Quote:
Originally Posted by Donuts
Посмотреть сообщение
The error is not on your script! It's on the include

Check the line 231 of the file 'pBank.inc'
i have fixed it for him
download it from here::
click here to download
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)