SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 207
Search took 0.01 seconds.
Search: Posts Made By: Black Axe
Forum: Tutorials 09/04/2016, 07:18 AM
Replies: 68
[Tutorial] How to use SQLite
Views: 37,712
Posted By Black Axe
Re: How to use SQLite

Great tutorial, would be great if you could explain what a query does/send in depth aswell, plus how do you know the parameters for the queries?

For example

db_query( Database, "CREATE TABLE...
Forum: Scripting Help 05/04/2016, 12:16 AM
Replies: 3
Views: 494
Posted By Black Axe
Re: Problem with 3D Dimensional array.

I see, could you please explain what's happening here

new
emptyIndex = 0;

for(new i = 0; i < MAX_INDEXES; i ++) {

if(!isnull(TheArray[playerid][i])) {

...
Forum: Scripting Help 04/04/2016, 11:19 PM
Replies: 3
Views: 494
Posted By Black Axe
Problem with 3D Dimensional array.

Here's the problem, I am trying to loop through a 50 slot 3D Dimensional array, check which slot has no text [empty string] & save a string in it, them loop once again and save a 2nd string, etc.
...
Forum: Scripting Help 04/04/2016, 05:42 PM
Replies: 8
Views: 2,203
Posted By Black Axe
Forum: Scripting Help 27/03/2016, 09:34 PM
Replies: 5
Views: 395
Posted By Black Axe
Re: Loading strings issue.

Still need help, seriously tho I need to find the issue.

for(new j = 0; j < 13; j++)
{
if(strcmp(key, "FactionSkins") == 0) FacInfo[i][FactionSkins][j] = strval(line[s]);
else...
Forum: Scripting Help 26/03/2016, 04:39 PM
Replies: 5
Views: 395
Posted By Black Axe
Re: Loading strings issue.

Still need help with this guys.
Forum: Scripting Help 26/03/2016, 06:48 AM
Replies: 5
Views: 395
Posted By Black Axe
Re: Loading strings issue.

Its the same as PHP rtrim, it returns a string with whitespace stripped from the end of str.

That's not the problem here tho, it might be something to do with the loop.
Forum: Scripting Help 26/03/2016, 06:08 AM
Replies: 5
Views: 395
Posted By Black Axe
Loading strings issue.

Hello, so I am creating a faction system where the faction rank-names are dynamic, you set their strings in-game and they save in the faction's file. The saving works fine and the string gets written...
Forum: Scripting Help 18/02/2016, 06:47 AM
Replies: 2
Views: 498
Posted By Black Axe
Re: Error 028: invalid subscript (not an array or too many subscripts):

Wow that actually did work, I understand replacing the else if with if as that was a mistake by me, but got any explanation for renaming the enum? Thanks!
Forum: Scripting Help 18/02/2016, 05:44 AM
Replies: 2
Views: 498
Posted By Black Axe
Forum: Scripting Help 13/02/2016, 04:59 AM
Replies: 0
Views: 349
Posted By Black Axe
Forum: Scripting Help 20/01/2016, 08:26 AM
Replies: 2
Views: 490
Posted By Black Axe
Re: Comparing 2 strings using strcmp.

Oh wow that's alot easier than I thought, thanks bud.
Forum: Scripting Help 20/01/2016, 08:18 AM
Replies: 2
Views: 490
Posted By Black Axe
Comparing 2 strings using strcmp.

Hello!

So I've been working on my house system and I am at my final touches. Basically my system works through names, it saves the names to the house and that's how it recognizes if its the owner...
Forum: Scripting Help 16/01/2016, 07:38 PM
Replies: 1
Views: 239
Posted By Black Axe
Code explanation.

Hello!

I've been trying to create a dynamic system lately but I struggle with saving/loading so I was reading through other people's code to see how it works, I came at a stop when I reached this...
Forum: Scripting Help 15/01/2016, 07:27 AM
Replies: 3
Views: 703
Posted By Black Axe
Re: Add commas to sscanf params.

Not really, That's what I get when I launch samp-server.exe :

sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.

I've been reading through...
Forum: Scripting Help 14/01/2016, 07:59 AM
Replies: 3
Views: 703
Posted By Black Axe
Add commas to sscanf params.

Hello!

I've started learning sscanf recently after a long time of painful strtok usage and I've realized that sscanf is SO much easier, I've been missing out.

Anyway, I am trying to make a...
Forum: Scripting Help 13/01/2016, 05:56 AM
Replies: 2
Views: 568
Posted By Black Axe
Forum: Scripting Help 13/01/2016, 04:22 AM
Replies: 2
Views: 568
Posted By Black Axe
Use sscanf to check the entry of 2nd params?

Hi!

I've always been using strcmp & strtok until recently I realized how dumb I was as sscanf & ZCMD are SO MUCH easier. The problem I have with sscanf tho, is how to check if the first params...
Forum: Scripting Help 11/01/2016, 07:21 AM
Replies: 5
Views: 590
Posted By Black Axe
Re: Explain this loop please.

Thanks! That was great help, appreciate it.




Uh.. I was talking about the loop..?
Forum: Scripting Help 11/01/2016, 03:34 AM
Replies: 3
Views: 509
Posted By Black Axe
Re: Save Vehicle Object Problem ( $$ )

Do you recreate/reattach the object after the server restarts? Because I could only find you saving & loading the object but not creating it again.
Forum: Scripting Help 11/01/2016, 03:04 AM
Replies: 5
Views: 590
Posted By Black Axe
Explain this loop please.

I've been looking at this code for a while now but couldn't make sense of it.


new CreatedCars[MAX_VEHICLES] = {INVALID_VEHICLE_ID, ...};


new currentVehicle =...
Forum: Scripting Help 10/01/2016, 06:23 AM
Replies: 4
Views: 516
Posted By Black Axe
Re: Commands are being skipped.

I gave it a shot but it didnt really help.

Now /kick returns as an unknown command, /giveplayergun either tell me the "You know the guns" return message when I leave the params blank or else it...
Forum: Scripting Help 10/01/2016, 04:54 AM
Replies: 4
Views: 516
Posted By Black Axe
Commands are being skipped.

I've been trying to write some commands and see how it goes as its been a while so I opened a new PAWNO file and started working on it, I wrote four commands and went in game to test them

public...
Forum: General 17/03/2014, 01:38 AM
Replies: 27
Views: 3,013
Posted By Black Axe
Forum: Everything and Nothing 27/12/2013, 08:41 PM
Replies: 12
Views: 1,013
Posted By Black Axe
Re: Online music uploaders.

Thank you!

However, I also found kiwi6.com
Showing results 1 to 25 of 207

 

All times are GMT. The time now is 12:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.