SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Kwarde
Forum: Scripting Help 07/12/2019, 07:07 AM
Replies: 3
Views: 157
Posted By Kwarde
Re: Problem trying to put server online with OVH VPS

cd stands for "change directory". So..
Forum: Scripting Help 07/12/2019, 01:56 AM
Replies: 4
Views: 150
Posted By Kwarde
Re: dialog stats

You don't have the source code? (The .pwn file)?
There are AMX decompilers. If the file isn't protected with an anti-decompiler you can translate it back to the .pwn file.

However, when compiling...
Forum: Scripting Help 03/12/2019, 07:49 PM
Replies: 14
Views: 396
Posted By Kwarde
Re: Fetch offline and online players

Nice clear answer, thanks

Edit:
I just realised that Owner in factions was not supposed to be a name but the user ID, lol
Forum: Scripting Help 03/12/2019, 05:48 PM
Replies: 14
Views: 396
Posted By Kwarde
Re: Fetch offline and online players

It is an assumption of a pre existing table (same table used for checking if someone is registered on the server. Didnt include columns like password, adminlevel etc because that was not relevant...
Forum: Scripting Help 03/12/2019, 05:35 PM
Replies: 14
Views: 396
Posted By Kwarde
Re: Fetch offline and online players

@Calisthenics: Never been into foreign keys 'cuz when dropping all tables in a DB I'd have to uncheck 'check for foreign keys'. And I always forget that so I'd have to remove tables twice. (Lazyness...
Forum: Scripting Help 03/12/2019, 02:11 PM
Replies: 14
Views: 396
Posted By Kwarde
Re: Fetch offline and online players

How to get all files: You could use FileManager to fetch all dirs/files from a directory: https://forum.sa-mp.com/showthread.php?t=92246

However I also recommend you to use MySQL (or SQLite)....
Forum: Scripting Help 01/12/2019, 01:11 PM
Replies: 7
Views: 144
Posted By Kwarde
Re: Shadowing Variable at preceeding level

I have to admit I didn't read the whole post (I blame all the people that do send errors (not just on these forums) while the error literally says what's up).
Anyway see RoboN1X's reply. I've been...
Forum: Scripting Help 30/11/2019, 07:17 PM
Replies: 7
Views: 144
Posted By Kwarde
Re: Shadowing Variable at preceeding level

It means you created a variable in a lower level that already exists in a higher level.
Forum: Scripting Help 30/11/2019, 05:52 PM
Replies: 11
Views: 254
Posted By Kwarde
Re: Random Objects and random spawn

Provided code will return runtime errors as you may try to access non existing array indexes.

new rand = random(sizeof(Objects));
Size of Objects is 2 at this point so 'rand' can be 0 or 1.
...
Forum: Scripting Help 30/11/2019, 02:02 PM
Replies: 11
Views: 254
Posted By Kwarde
Re: Random Objects and random spawn

Your array has a size of 600 cells but you only initialised two object IDs. So index 0 and 1 have this object ID, all other indexes have '0'. It is creating objects with ID 0 most likely crashing...
Forum: Scripting Help 30/11/2019, 01:12 PM
Replies: 4
Views: 92
Posted By Kwarde
Re: How to connect a gamemode to phpbb forum ?

phpBB doesn't save it's data to phpmyadmin but to a selected server (most commonly, MySQL with MySQLi extension). Phpmyadmin is just a webscript that allows you to view and manage data on whatever...
Forum: Scripting Help 30/11/2019, 01:08 PM
Replies: 11
Views: 254
Posted By Kwarde
Re: Random Objects and random spawn

random(599) + 1

Random 600 returns a random integer (0 up to 599). Random 599+1 returns 1 up to 599
Forum: Scripting Help 30/11/2019, 07:51 AM
Replies: 2
Views: 88
Posted By Kwarde
Re: crash onplayerdead

You are trying to get stats from killerid at some parts without checking if killerid is valid. Eg. the Player_GetGang
Forum: Scripting Help 29/11/2019, 09:27 PM
Replies: 3
Views: 135
Posted By Kwarde
Re: MYSQL SECOND TO HOUR

You might want to use AS. PostgreSQL for example requires AS to be used when renaming columns and would reject your query. Unlikely OP is using this but I find it good practice to just always use AS....
Forum: Scripting Help 29/11/2019, 09:25 PM
Replies: 10
Views: 190
Posted By Kwarde
Re: MySQL to SQLite.

If you're using basic queries only you probably don't need to change those queries. Check out SAMP Wiki for the SQLite functions. Here's a good start: https://wiki.sa-mp.com/wiki/Db_open -you can see...
Forum: Scripting Help 29/11/2019, 09:18 PM
Replies: 6
Views: 157
Posted By Kwarde
Re: Fake Compilation Pawn

Try compiling other scripts , for example this:

native print(const string[]);
main()
print("Hello world!");

If it compiles and run it might be the script -check eventual includes aswell...
Forum: Scripting Help 29/11/2019, 07:24 PM
Replies: 10
Views: 190
Posted By Kwarde
Re: MySQL to SQLite.

Really depends on the hoster. And yes believe it or not, connecting to a MySQL database requires a running MySQL server (that's where the database is on).
I'm not sure if you were sarcastic or not...
Forum: Scripting Help 29/11/2019, 07:20 PM
Replies: 4
Views: 207
Posted By Kwarde
Re: Problem with UserControlPanel

This.

Also: No such file or directory in /usr/share/nginx/ucp/models/Database.php:85 .
The Database.php file doesn't exist (in that directory). However since you're not actually reading the log...
Forum: Scripting Help 29/11/2019, 07:07 PM
Replies: 6
Views: 157
Posted By Kwarde
Re: Fake Compilation Pawn

Did it create a .asm file aswell? Because this happens when you
* Compile with option -l (no error/warning handling)
* Compile with option -a (creates the assembler code so it checks for warnings...
Forum: Gamemode Scripts 25/11/2019, 03:51 PM
Replies: 108
Views: 15,946
Posted By Kwarde
Re: San Fierro Cops And Robbers

What do you mean by that?
If.you successfully compiled the GM you can use the created amx to run the server -Assuming you have all right plugins, working MySQL connection and correct db structure...
Forum: Gamemode Scripts 24/11/2019, 11:35 PM
Replies: 108
Views: 15,946
Posted By Kwarde
Re: San Fierro Cops And Robbers

@Everyone being too lazy:
All required includes/plugins are on the Github Wiki.
Here's it too tho, WITHOUT streamer and mysql includes+plugins. Check the github wiki to see which versions you need....
Forum: Scripting Help 24/11/2019, 10:54 PM
Replies: 5
Views: 124
Posted By Kwarde
Re: Please Help

Check out both functions on samp wiki:
https://wiki.sa-mp.com/wiki/GetPlayerPos
https://wiki.sa-mp.com/wiki/GetPlayerFacingAngle

Get...Pos expects 4 parameters (playerid, X, Y, Z).
Get...Angle...
Forum: Scripting Help 24/11/2019, 10:10 PM
Replies: 5
Views: 124
Posted By Kwarde
Re: Please Help

If not, just let me know
Forum: Scripting Help 24/11/2019, 09:38 PM
Replies: 5
Views: 124
Posted By Kwarde
Re: Please Help

Well, get the facing angle using GetPlayerFacingAngle() and make sure there's a 'DealerShipPos[x][3]' where 3 is the A (angle) axis.
I've had some occasions where GetPlayerFacingAngle() didn't...
Forum: Scripting Help 23/11/2019, 08:39 PM
Replies: 4
Views: 115
Posted By Kwarde
Re: Add line above existing line

You'd have to store all the data into another file, truncate the original file (io_write instead of io_append), and then store all the data from the old file back into the original file (io_append)....
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 01:23 AM.


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