SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 283
Search took 0.01 seconds.
Search: Posts Made By: ball
Forum: Plugin Development 12/11/2018, 04:50 PM
Replies: 49
[Plugin] Log plugin
Views: 26,611
Posted By ball
Re: Log plugin

It should show a colour in RGBA format, like in format/printf functions.

new lColorID = 0xFF00FFAA;
printf("%x", lColorID); //output: FF00FFAA
Forum: Plugin Development 12/11/2018, 08:55 AM
Replies: 49
[Plugin] Log plugin
Views: 26,611
Posted By ball
Re: Log plugin

If this is possible, can you add %x as a valid format specifier?
Forum: Scripting Help 30/07/2018, 09:09 AM
Replies: 9
Views: 219
Posted By ball
Re: Recursion

Search for randomEx

randomEx(ITEM_MEDKIT, ITEM_BONDAGE)
Forum: Includes 16/06/2018, 10:38 PM
Replies: 32
Views: 6,954
Posted By ball
Re: samp-compat: Backwards and forward compatibility libraries between server-client (Old IsClient03DL)

Bullshit, maybe it's useful, but not a must-have. But hey, guys, it's topic about samp-compat, so go to your topic.
Forum: Plugin Development 12/06/2018, 09:53 PM
Replies: 514
Views: 103,402
Posted By ball
Forum: Everything and Nothing 11/06/2018, 10:46 PM
Replies: 22
Views: 2,554
Posted By ball
Re: Why people still use 0.3.7

In my opinion, method of how this version is done, is a not funny joke. Players won't stream anything until after OnPlayerFinishedDownloading is called, if you want to set player world and put him in...
Forum: Plugin Development 08/06/2018, 01:03 PM
Replies: 5,758
[Plugin] Streamer Plugin
Views: 2,861,886
Posted By ball
Re: Streamer Plugin

Oh, that saved my day, thanks.
Forum: Plugin Development 08/06/2018, 11:33 AM
Replies: 5,758
[Plugin] Streamer Plugin
Views: 2,861,886
Posted By ball
Re: Streamer Plugin

Let's take code above for example, on version 0.3.7 it simply works, put me in vehicle, but on 0.3.DL function PutPlayerInVehicle returns 1, vehicle is created, but I can't see vehicle (virtual...
Forum: Plugin Development 07/06/2018, 11:35 PM
Replies: 5,758
[Plugin] Streamer Plugin
Views: 2,861,886
Posted By ball
Re: Streamer Plugin

Is there support for 0.3.DL version? Cause I got problems on switching virtual worlds and putting player in vehicle.

lVehicleID = CreateVehicle(411, lX, lY, lZ, lA);...
Forum: Scripting Help 05/06/2018, 08:12 PM
Replies: 2
Views: 135
Posted By ball
Re: Dialog list with multiple result from query

You have to create two strings and use strcat

new str1[512], str2[100];
//loop
format(str2, sizeof str2, ...);
strcat(str1, str2);

In your code, you format actual row, but the row before is...
Forum: Plugin Development 31/05/2018, 05:21 PM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

Thank you very much, now its working like a charm! I took the parameters from there (https://github.com/BrunoBM16/RPC-List/wiki/RPC-List\) and I thought it is correct.
Forum: Plugin Development 31/05/2018, 02:08 PM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

I try to set textdraw string for one player.

CMD:test2(p, params[])
{
new BitStream:lBitStream = BS_New();

BS_WriteValue
(
lBitStream,
PR_UINT16, _:gLoginDraw,
Forum: Plugin Development 17/05/2018, 08:39 PM
Replies: 5,758
[Plugin] Streamer Plugin
Views: 2,861,886
Posted By ball
Re: Streamer Plugin

Streamer_RemoveArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerInfo[playerid], E_STREAMER_PLAYER_ID, playerid);
Forum: Includes 16/05/2018, 01:39 PM
Replies: 56
Views: 35,621
Posted By ball
Re: [INC] strlib v1.3 - Simple string modification (Update: 21/10/09)

printf("%s %s %s", dest[0], dest[1], dest[2]);
Forum: Includes 03/05/2018, 06:30 PM
Replies: 6
Views: 1,605
Posted By ball
Re: Linked list implementation in PAWN

MEM_zero(UnmanagedPointer:MEM_UM_get_addr(value[0]), sizeof value);

Now line gives warning "tag mismatch", but I changed tag to "Pointer" and warning disappeared.
...
Forum: Includes 03/05/2018, 03:18 PM
Replies: 6
Views: 1,605
Posted By ball
Re: Linked list implementation in PAWN

Thanks, now I got it. So I give it a try and got some code from documentation at github, there are some errors, not big, but if you want to know.

new List:list, value[16], m_v_sz, v_sz;...
Forum: Includes 03/05/2018, 01:15 PM
Replies: 6
Views: 1,605
Posted By ball
Re: Linked list implementation in PAWN

What is the difference between LIST_push_back_* and LIST_push_front_*? I read documentation of this, but still I don't get it, for example

new List:list;
LIST_push_back_str(list, "This is a...
Forum: Plugin Development 14/04/2018, 10:52 AM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

Come on man, maybe you should try to find it yourself instead of crying here?

http://forum.sa-mp.com/showthread.php?t=599574



I was hoping for more data in this packet, but anyway thanks for...
Forum: Plugin Development 13/04/2018, 11:08 PM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

Here you go most of them: http://forum.sa-mp.com/showthread.php?t=649570
It is in spanish/portugese, I can't find this thread in english, although the most important info is readable.
...
Forum: Scripting Help 20/03/2018, 06:17 PM
Replies: 6
Views: 234
Posted By ball
Re: Is there any way to split?

Read about sscanf.
Forum: Scripting Help 04/03/2018, 12:52 PM
Replies: 4
Views: 190
Posted By ball
Re: Update housepickup_mapicon

You use AddStaticPickup to create pickup and use DestroyDynamicPickup to destroy it, you can't do it like that. Use CreateDynamicPickup and DestroyDynamicPickup or CreatePickup and DestroyPickup.
...
Forum: Plugin Development 27/02/2018, 10:00 AM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

Thanks, now all data is true.



I use dynamic labels (label's id id 1025 as you can see above). Simply I wanted to create option for players to hide certain labels if they want, I can't achieve...
Forum: Plugin Development 26/02/2018, 05:33 PM
Replies: 202
[Plugin] Pawn.RakNet
Views: 71,646
Posted By ball
Re: Pawn.RakNet

I am trying to get some informations about 3D text labels. After searching RPC arguments, I tried this code

new lLabelID, lColorID, Float:lX, Float:lY, Float:lZ, Float:lDrawDistance, lUseLOS,...
Forum: Scripting Help 25/02/2018, 08:15 PM
Replies: 1
Views: 134
Posted By ball
Predator damage

I noticed while ago, that damaging another player from predator is weird. For example, in comparison to rustler:

- damage from rustler calls OnPlayerTakeDamage with connected issuerid
- damage...
Forum: Plugin Development 30/10/2017, 10:31 AM
Replies: 5,758
[Plugin] Streamer Plugin
Views: 2,861,886
Posted By ball
Re: Streamer Plugin

The only idea in my head

new objectid = CreateDynamicObject(...);
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, 0);

Except world 0 to 99 you need loop.

new...
Showing results 1 to 25 of 283

 

All times are GMT. The time now is 03:39 PM.


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