SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 384
Search took 0.01 seconds.
Search: Posts Made By: RoboN1X
Forum: Scripting Help 11/01/2020, 04:19 AM
Replies: 1
Views: 82
Posted By RoboN1X
Re: System lvl

new newlevel = PlayerInfo[i][Score] / 500;
if (PlayerInfo[i][Level] < newlevel)
{
PlayerInfo[i][Level] = newlevel;
}
Forum: Scripting Help 09/01/2020, 08:00 PM
Replies: 4
Views: 187
Posted By RoboN1X
Re: Help with mysql

SQLite and MySQL is different. SQLite is already bundled with sa-mp server package and the database is saved as .db file under the scriptfiles folder. The DB Browser software you are using is for...
Forum: Scripting Help 07/01/2020, 08:24 PM
Replies: 7
Views: 176
Posted By RoboN1X
Re: Clan ID's

use AUTO_INCREMENT (https://dev.mysql.com/doc/refman/8.0/en/example-auto-increment.html) for clan id in the clan table when a clan is inserted using cache_insert_id()...
Forum: Scripting Help 29/12/2019, 07:25 AM
Replies: 3
Views: 151
Posted By RoboN1X
Re: Error 301 Http GET Response

You cannot use HTTP function that natively comes with SA-MP server as it does not support HTTPS. The API service always redirect insecure connection to secure one (confirm it with the API provider)....
Forum: Scripting Help 17/12/2019, 11:25 PM
Replies: 7
Views: 181
Posted By RoboN1X
Re: warning 239: literal array/string passed to a non-const parameter

copy your argument to a new string that you can modify

either this

ShowPlayerMessage(playerid, const text[1024], seconds = 0, sound = 0)
{
new message[1024];
message = text;
Forum: Scripting Help 01/12/2019, 09:01 AM
Replies: 1
Views: 100
Posted By RoboN1X
Re: 2 quick y_ini questions

1. If you just want to save a string in a text file as new line then fopen (with io_append mode) (https://wiki.sa-mp.com/wiki/Fopen) and fwrite (https://wiki.sa-mp.com/wiki/Fwrite) is your choice....
Forum: Scripting Help 01/12/2019, 08:52 AM
Replies: 1
Views: 81
Posted By RoboN1X
Re: How to add a NEW line in Y_INI?

Give an incremental number in the property name.

Why you assume it is faster to do in Y_INI?

You want a writing log system, use the normal file append approach or create a database for it....
Forum: Scripting Help 01/12/2019, 08:35 AM
Replies: 9
Views: 327
Posted By RoboN1X
Re: Is it possible to use the both train track?

I don't quite understand with your statement.
at first post you already mention one track works but the other one is not. I assume you already know that one track (left) works, regardless samp...
Forum: Scripting Help 01/12/2019, 08:20 AM
Replies: 7
Views: 178
Posted By RoboN1X
Re: Shadowing Variable at preceeding level

The scope of the variable is the whole switch bracket

You are confusing switch with if else

That's fine if you didn't know, because in another languages...
Forum: Scripting Help 01/12/2019, 08:07 AM
Replies: 5
Views: 138
Posted By RoboN1X
Re: mask SetPlayerAttachedObject

Pay attention when copying link, as those two you pasted does not work. Luckily i got the original link from your previous post in PT board (https://forum.sa-mp.com/showthread.php?t=670782).

They...
Forum: Scripting Help 01/12/2019, 07:53 AM
Replies: 1
Views: 86
Posted By RoboN1X
Re: [TXD] TextDraw Position Behavior

/hudscalefix (https://wiki.sa-mp.com/wiki/Client_Commands)
Forum: General 21/11/2019, 06:01 AM
Replies: 5
Views: 348
Posted By RoboN1X
Re: How to read USERDATA.DAT, File where servers are stored?

We don't know for sure, it is basic DAT which stores application data...

If we open it with notepad, we can see some plain strings, there are separators which are null and some binaries for the...
Forum: Scripting Help 21/11/2019, 05:21 AM
Replies: 1
Views: 96
Posted By RoboN1X
Re: Message

Use escape character (https://en.wikipedia.org/wiki/Escape_character) (backslash) \"

SendClientMessage(playerid, 0xFFFFFFFF, "Hello \"world\", the text is quoted");

Will output:
Hello "world",...
Forum: Scripting Help 21/11/2019, 05:09 AM
Replies: 9
Views: 327
Posted By RoboN1X
Forum: Scripting Help 15/11/2019, 07:12 PM
Replies: 4
Views: 125
Posted By RoboN1X
Re: [Help] I can't do spawn

The player or camera position is in a NaN area... do not mess with spawnplayer setplayercamera/setplayerpos and togglespec wtih wrong order and wrong coordinates. (most likely the player position...
Forum: Scripting Help 15/11/2019, 07:06 PM
Replies: 10
Views: 198
Posted By RoboN1X
Re: question SetObjectMaterialText

I think i already gave you a clue..

0.3.DL approach, copy the txd file in custom model folder, add it for download (assign the id), use object material with the texture & the custom model id.
...
Forum: Scripting Help 15/11/2019, 06:43 PM
Replies: 10
Views: 198
Posted By RoboN1X
Re: question SetObjectMaterialText

theres no font name for that dude... you confuse textdraw font with system font... textdraw uses game font, objectmaterialtext uses system font (arial, comic sans, impact, tahoma, etc)

You can...
Forum: Scripting Help 15/11/2019, 06:11 PM
Replies: 10
Views: 198
Posted By RoboN1X
Re: question SetObjectMaterialText

You cant use textdraw sprites as object material
only in 0.3.8/DL you can use texture from custom models or sprites* as object material
* note that 0.3.8 allows a custom model textures to be loaded...
Forum: Scripting Help 15/11/2019, 06:00 PM
Replies: 1
Views: 82
Posted By RoboN1X
Re: Streamer question

The wiki says otherwise...
Forum: Scripting Help 08/11/2019, 02:42 PM
Replies: 26
Views: 499
Posted By RoboN1X
Re: /wantedcars list Command is bugging

You wanted to delete it but why you run query to load it?
CMD:delsucar(playerid, params[])
{
if (!eingeloggt[playerid]) return NOT_LOGGEDIN(playerid);
if (!IsPlayerInFraktion(playerid, 1) &&...
Forum: Scripting Help 08/11/2019, 11:36 AM
Replies: 26
Views: 499
Posted By RoboN1X
Re: /wantedcars list Command is bugging

Alright then show the code for the delete command, the dialog, and the callback too, just like how everything you did in the first post for /wantedcars list
Forum: Scripting Help 08/11/2019, 08:17 AM
Replies: 26
Views: 499
Posted By RoboN1X
Re: /wantedcars list Command is bugging

I think you better go with ORM instead, Why? I see that you always assume the wInfo arrays always containing the same data in your database, like how you assume that after loading the data from...
Forum: Client Support 08/11/2019, 07:49 AM
Replies: 3
Views: 576
Posted By RoboN1X
Re: How to make players can see custom object?

As i already said in my previous post, you can use CreateObject (https://wiki.sa-mp.com/wiki/CreateObject) or CreatePlayerObject (https://wiki.sa-mp.com/wiki/CreatePlayerObject) function in the...
Forum: Scripting Help 07/11/2019, 06:44 PM
Replies: 26
Views: 499
Posted By RoboN1X
Re: /wantedcars list Command is bugging

I meant you format the string like this (appended):
format(string,sizeof(string),"%s\t%s\t%s\n%s",wInfo[i][CarModel],wInfo[i][WantedKennzeichen],wInfo[i][WantedGrund],string);

Instead of this:...
Forum: Client Support 07/11/2019, 06:38 PM
Replies: 3
Views: 576
Posted By RoboN1X
Re: How to make players can see custom object?

Unfortunately, you are late .. the version branch for easy custom object that allow players to download from the server has been just pulled out alongside the subforum.

Alternatively you can add...
Showing results 1 to 25 of 384

 

All times are GMT. The time now is 07:29 AM.


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