[FilterScript] Robbable Cash Registers
#1




Information

This filterscript adds robbable cash registers like in GTA V, you can steal money from them by pressing N or by shooting it. Shooting a cash register gives you 50% less money but it's faster.

Config

#define CREG_MIN_MONEY - Minimum amount of money that can be stolen from a cash register. (Default: 250)
#define CREG_MAX_MONEY - Maximum amount of money that can be stolen from a cash register. (Default: 1000)
#define CREG_RESPAWN - Time required for a cash register to become robbable again, in seconds. (Default: 180)

Commands (All commands are RCON only.)

/createregister - Creates a cash register on your location.
/editregister [id] - Allows you to edit the cash register you specified.
/removeregister [id] - Removes the cash register you specified.

Credits

Slice for SQLite Improved
Incognito for Streamer Plugin
Yashas for Improved ZCMD

Downloads

Reply
#2

Looks pretty decent that. I like how neat it looks on the pictures.
Reply
#3

Another awesome release from you, as always.
Reply
#4

Wonderful.
Reply
#5

Nice one!
Reply
#6

Another nice filterscript, good work!
Reply
#7

You the filterscript god, m8.
Reply
#8

Keep it up brah.
Reply
#9

What Object id is the casher btw?

Edit:Found it.
Reply
#10

Can I ask you a question? Why are you using SQL instead of MySQL? I really like your scripts because they are awesome, but I know last months you were publishing House System and Business system and those were with MySQL.. it is SQL better than MySQL?
Reply
#11

Quote:
Originally Posted by feheristi97
View Post
Can I ask you a question? Why are you using SQL instead of MySQL? I really like your scripts because they are awesome, but I know last months you were publishing House System and Business system and those were with MySQL.. it is SQL better than MySQL?
You do realise that SQL.. and MySQL.. is two different things. Buddy, SQL is the language of the program. MySQL is the proccessor.
Quote:

Well, SQL stands for Structured Query Language, and it is a programming language designed for quering data from database, and MySQL is a relational database management system which is completely different thing.

Reply
#12

It is almost the same thing. The only difference in SQL is the db files and in MySQL the tables.
Reply
#13

good job
Reply
#14

SQL is a language, he is releasing these in SQLite !

as per usual great job, and actually I was hoping to get hold of you some way then I noticed you closed forum PMs so I guess you don't wanna be reached?
Reply
#15

Thanks guys!

Quote:
Originally Posted by feheristi97
View Post
Can I ask you a question? Why are you using SQL instead of MySQL? I really like your scripts because they are awesome, but I know last months you were publishing House System and Business system and those were with MySQL.. it is SQL better than MySQL?
I prefer using MySQL for bigger things and not everyone has a MySQL connection as they may use y_ini or some other file based saving. I could use y_ini but I don't like creating many files in a directory, so only alternative left is SQLite as it needs no connection and it's pretty easy to use.

Quote:
Originally Posted by PrO.GameR
View Post
SQL is a language, he is releasing these in SQLite !

as per usual great job, and actually I was hoping to get hold of you some way then I noticed you closed forum PMs so I guess you don't wanna be reached?
You can add me on steam just click on my signature, I don't really visit SA-MP forums.
Reply
#16

when i compile i get this
Code:
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(969) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(978) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(2159) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\cash.pwn(68) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(124) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(148) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(214) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(285) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(296) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(315) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(315) : error 017: undefined symbol "objectid"
C:\Users\Ihabou\Desktop\cash.pwn(317) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(320) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(322) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(323) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(326) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(330) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(333) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(336) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(340) : error 021: symbol already defined: "format"
C:\Users\Ihabou\Desktop\cash.pwn(346) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(349) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(349) : error 017: undefined symbol "objectid"
C:\Users\Ihabou\Desktop\cash.pwn(351) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(353) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(355) : error 021: symbol already defined: "id"
C:\Users\Ihabou\Desktop\cash.pwn(355) : error 008: must be a constant expression; assumed zero
C:\Users\Ihabou\Desktop\cash.pwn(361) : error 021: symbol already defined: "SetDynamicObjectPos"
C:\Users\Ihabou\Desktop\cash.pwn(364) : error 021: symbol already defined: "Streamer_SetFloatData"
C:\Users\Ihabou\Desktop\cash.pwn(368) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(368) : error 021: symbol already defined: "stmt_bind_value"
C:\Users\Ihabou\Desktop\cash.pwn(369) : error 021: symbol already defined: "stmt_bind_value"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#17

Quote:
Originally Posted by Ihabou
View Post
when i compile i get this
Code:
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(969) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(978) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\iServer\EO_CnR\pawno\include\sqlitei.inc(2159) : error 017: undefined symbol "db_get_result_mem_handle"
C:\Users\Ihabou\Desktop\cash.pwn(68) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(124) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(148) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(214) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(285) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(296) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ihabou\Desktop\cash.pwn(315) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(315) : error 017: undefined symbol "objectid"
C:\Users\Ihabou\Desktop\cash.pwn(317) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(320) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(322) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(323) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(326) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(330) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(333) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(336) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(340) : error 021: symbol already defined: "format"
C:\Users\Ihabou\Desktop\cash.pwn(346) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(349) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(349) : error 017: undefined symbol "objectid"
C:\Users\Ihabou\Desktop\cash.pwn(351) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(353) : error 010: invalid function or declaration
C:\Users\Ihabou\Desktop\cash.pwn(355) : error 021: symbol already defined: "id"
C:\Users\Ihabou\Desktop\cash.pwn(355) : error 008: must be a constant expression; assumed zero
C:\Users\Ihabou\Desktop\cash.pwn(361) : error 021: symbol already defined: "SetDynamicObjectPos"
C:\Users\Ihabou\Desktop\cash.pwn(364) : error 021: symbol already defined: "Streamer_SetFloatData"
C:\Users\Ihabou\Desktop\cash.pwn(368) : error 025: function heading differs from prototype
C:\Users\Ihabou\Desktop\cash.pwn(368) : error 021: symbol already defined: "stmt_bind_value"
C:\Users\Ihabou\Desktop\cash.pwn(369) : error 021: symbol already defined: "stmt_bind_value"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Omg, Why did u dumb this page? Fix your Includes or updates it
Reply
#18

Quote:
Originally Posted by RedRex
View Post
Omg, Why did u dumb this page? Fix your Includes or updates it
So u like to laugh on the begginers ?
I'm just a newbie dude ! I tell him what i get after i compile it and i have all the inc in pawno idk what is wrong
Did it work for you.
Reply
#19

Just! WOW! Keep it up mate
Reply
#20

Dude IDK But I have some pirated ones Like Microsoft Office 'n Exel etc... I'm Fucking Illegal


// EOUSSAMA It work For ya ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)