SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Kwarde
Forum: Scripting Help 18/01/2020, 05:19 PM
Replies: 2
Views: 71
Posted By Kwarde
Re: Possible to check if player ran a red light?

I remembered there was a script to control traffic lights. https://forum.sa-mp.com/showthread.php?t=646429
This one seems interresting aswell: https://forum.sa-mp.com/showthread.php?t=509952
^ When...
Forum: Everything and Nothing 30/12/2019, 10:42 PM
Replies: 6
Views: 368
Posted By Kwarde
Re: Geforce Gtx1050 2gb

I go with what Gforcez said. Dutch people don't talk nonsense.
Forum: Scripting Help 07/12/2019, 07:07 AM
Replies: 3
Views: 177
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: 171
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: 447
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: 447
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: 447
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: 447
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: 176
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: 176
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: 318
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: 318
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: 107
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: 318
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: 104
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: 151
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: 214
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: 179
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: 214
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: 232
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: 179
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: 111
Views: 17,622
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: 111
Views: 17,622
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: 144
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: 144
Posted By Kwarde
Re: Please Help

If not, just let me know
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:58 PM.


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