Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
When you have for example 4 chars in the string (the part you see), like "Luka", it is actually 5 chars because compiler converts the code to "Luka\0", to end the string. So if you're using s[5] you can only get 4 chars, not 5 (actually you get 5 chars, but the last one is string terminator).
Posts: 1,429
Threads: 50
Joined: Feb 2009
Reputation:
0
String = nothing but a array.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Extremly usefull and shockingly easy to use include. Takes the ball-ache straight out of creating sqlite databases. Thanks g_aSlice great code. Using now, will report bugs. (if any)
Posts: 1,831
Threads: 69
Joined: Mar 2008
Reputation:
0
Well.. a few people are using this in their gamemode without any problems, so I'm not sure what to update.
Posts: 1,831
Threads: 69
Joined: Mar 2008
Reputation:
0
I updated it so it won't crash when there are too many columns in the database. It'll just tell you to increase BUD_MAX_COLUMNS.
Posts: 245
Threads: 21
Joined: Jan 2011
Reputation:
0
Strangely, pawncc.exe crashes when I include the new bud.inc in a blank script.
Has this happened to anyone?
Posts: 1,831
Threads: 69
Joined: Mar 2008
Reputation:
0
This uses SQLite, you just need to use the functions and BUD takes care of everything else. You can use PDO or the sqlite3_* functions in PHP to connect to the database (which will be in your "scriptfiles" folder).