SA-MP Forums Archive
[FilterScript] Robbable Cash Registers - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Robbable Cash Registers (/showthread.php?tid=610368)

Pages: 1 2


Robbable Cash Registers - rootcause - 23.06.2016




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

Mediafire || Pastebin



Re: Robbable Cash Registers - Luis- - 23.06.2016

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


Re: Robbable Cash Registers - Private200 - 23.06.2016

Another awesome release from you, as always.


Re: Robbable Cash Registers - Max_Andolini - 23.06.2016

Wonderful.


Re: Robbable Cash Registers - Dayrion - 23.06.2016

Nice one!


Respuesta: Robbable Cash Registers - Whyd - 23.06.2016

Another nice filterscript, good work!


Re: Robbable Cash Registers - Ritzy2K - 23.06.2016

You the filterscript god, m8.


Re: Robbable Cash Registers - Freedom. - 23.06.2016

Keep it up brah.


Re: Robbable Cash Registers - WhiteGhost - 23.06.2016

What Object id is the casher btw?

Edit:Found it.


Re: Robbable Cash Registers - feheristi97 - 23.06.2016

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?


Re: Robbable Cash Registers - Luicy. - 23.06.2016

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.




Re: Robbable Cash Registers - feheristi97 - 24.06.2016

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


Re: Robbable Cash Registers - Touati - 24.06.2016

good job


Re: Robbable Cash Registers - PrO.GameR - 24.06.2016

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?


Re: Robbable Cash Registers - rootcause - 24.06.2016

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.


Re: Robbable Cash Registers - Ihabou - 03.01.2017

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.



Re: Robbable Cash Registers - RedRex - 03.01.2017

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


Re: Robbable Cash Registers - Ihabou - 04.01.2017

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.


Re: Robbable Cash Registers - Eoussama - 06.01.2017

Just! WOW! Keep it up mate


Re: Robbable Cash Registers - Ihabou - 06.01.2017

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


// EOUSSAMA It work For ya ?