|
|
#281 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Cloud 9
Posts: 2,296
Reputation: 223
|
I recently read this thread http://forum.sa-mp.com/showthread.php?t=356637.
And i thought it might be useful to have a database with all valid objectids in it. You can also add your own ids to the database easily if you have created your own objects. I created it from the valid_model array from the pastebin link in that thread. So credits go to whoever made that. It was posted by guest. http://pastebin.com/xgMrfNNK Here's the database Valid object database (should go in scriptfiles folder): https://dl.dropbox.com/u/76608104/valid_objects.db So you can do normal sqlite queries with the database. Eg, pawn Code:
EDIT: I posted the created database because it takes a while to generate. I think it took about 30 seconds on my PC. This was how it was created. pawn Code:
Wasn't sure whether to post here or snippets, i thought here would be better because its a DB not code. Last edited by iggy1; 06/07/2012 at 10:55 AM. |
|
|
|
|
|
#283 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Cloud 9
Posts: 2,296
Reputation: 223
|
Not sure how to use it TBH.
|
|
|
|
|
|
#284 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2010
Posts: 275
Reputation: 108
|
You can run it offline on WAMP Server. After you've installed it, open wamp folder, then open www folder and create a project folder. Paste php file in your project folder and run in the browser with localhost/project_folder/filename.php (URL). Though I'm not sure if Slice's code works as it gives me parse error on line 56 when I try to run it (I'm newbie in PHP).
|
|
|
|
|
|
#285 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,677
Reputation: 1940
|
That's got to be VASTLY slower than an O(1) bit check!
|
|
|
|
|
|
#286 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Cloud 9
Posts: 2,296
Reputation: 223
|
Definitely. I thought i might have been useful. (not so much now)
The thread i linked has been updated with a much better method to check if an object is valid. I don't understand how it works yet but i suppose i don't need to in order to use it. |
|
|
|
|
|
#287 |
|
Big Clucker
![]() ![]() Join Date: Mar 2012
Posts: 61
Reputation: 57
|
To whom may it concern, note that these constructs are perfectly legal (though I do not know if it would be sane to use them, just general info, these are both deprecated and obsolete AFAIK):
Code:
if expression *then expression
if expression *then { expression }
// note that
// if ( expression ) *then expression
// is not valid
// --------------------------------
// you can also use *begin and *end instead of braces but then you must have *then preceeding them
if expression *then
*begin
expression
*end
if expression *then *begin expression *end
// note that this kind of construct also can't make use of parentheses
// this is invalid: if ( expression ) *then *begin expression *end
Last edited by JoBullet; 07/07/2012 at 01:01 AM. |
|
|
|
|
|
#288 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Black Asylum
Posts: 2,447
Reputation: 222
|
In vehicle Mouse Wheel Detection
pawn Code:
KEY_CTRL_BACK is used to detect mouse wheel scrolling backwards in vehicle |
|
|
|
|
|
#289 |
|
Big Clucker
![]() ![]() Join Date: Dec 2010
Posts: 108
Reputation: 10
|
Need time machine to go few hours back!
my whole RP mode ( i was still working on it) with 6k+ lines disapired DAMN!!!! days of scripting ,designing ,mapping :/ is there way to convert .amx to .pwn |
|
|
|
|
|
#290 | |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,677
Reputation: 1940
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a soldier aotumaticly be general when the general dies ? | AlbanianGuy | Scripting Help | 35 | 13/05/2012 03:35 PM |
| Help general | [ZX]_Whitewolf | Help Archive | 0 | 15/06/2010 11:04 PM |
| A Full Pawn Reference | Jonni8 | General | 4 | 20/05/2010 10:35 PM |
| Team Balancer -(Fixed but someone might want to read for reference) | [HLF]Southclaw | Help Archive | 4 | 26/01/2010 07:24 AM |
| [SOLVED!] Strings as reference parameters... | XPlatform | Plugin Development | 4 | 23/08/2009 10:40 PM |