SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 405
Search took 0.01 seconds.
Search: Posts Made By: Banditul18
Forum: Scripting Help 29/08/2020, 05:32 AM
Replies: 2
Views: 98
Posted By Banditul18
Re: YSI 5.1 breaks compiler

You need to use the comunity compiler in order to use the 5+
https://github.com/pawn-lang/compiler
Forum: Plugin Development 26/08/2020, 09:33 PM
Replies: 443
Views: 105,029
Posted By Banditul18
Re: SampSharp - Write gamemodes in .NET

If you want ro hook a callback you will need to subscribe to its event. If you want ro hook a function that you can simply override it
Forum: Scripting Help 10/08/2020, 03:15 PM
Replies: 1
Views: 79
Posted By Banditul18
Re: i had a question

First of all you need to create a plugin for the server in order to call natives from samp in that language. A good example is SampSharp
Forum: Scripting Help 29/06/2020, 11:13 AM
Replies: 3
Views: 130
Posted By Banditul18
Re: mysql not saving

That looks like you have the option to log everything for the mysql. Nothing wrong there
Forum: Scripting Help 07/06/2020, 07:56 PM
Replies: 2
Views: 115
Posted By Banditul18
Re: Give me please

How about no
Forum: Scripting Help 28/04/2020, 01:10 PM
Replies: 10
Views: 276
Posted By Banditul18
Re: which is the maximum length of a string?

A better question is, do those variables are changing in same time? Or do they mean same thing? Because you can just update the variable only when it changes. I doubt a player admin level or player...
Forum: Scripting Help 27/01/2020, 03:51 PM
Replies: 0
Views: 145
Posted By Banditul18
Clock textdraw disapear, but not the date

I have this filterscript of the clock/date textxdraw: https://pastebin.com/BTvvMkXd
Until i updated YSI includes the script worked perfectly, after i did that update from YSI 3 to 5 the clock...
Forum: Plugin Development 11/01/2020, 06:53 PM
Replies: 443
Views: 105,029
Posted By Banditul18
Re: SampSharp - Write gamemodes in .NET

Nope. Sadly sa-mp doesnt allow this, only MTA
Forum: Scripting Help 04/01/2020, 08:50 AM
Replies: 6
Views: 318
Posted By Banditul18
Re: Optimization

Only thing i would do to that code is uzing inline mysql_tquery other than that is completly fine
Forum: Plugin Development 01/01/2020, 12:21 PM
Replies: 443
Views: 105,029
Posted By Banditul18
Re: SampSharp - Write gamemodes in .NET

With the Id property

S# BasePlayer methods/properties (http://api.sampsharp.timpotze.nl/html/6b8262ea-2967-5ca9-0119-505f6f46ba46.htm)
Forum: Plugin Development 01/01/2020, 11:07 AM
Replies: 443
Views: 105,029
Posted By Banditul18
Re: SampSharp - Write gamemodes in .NET

You can use it. Tim made a library for it and you can fully utilize it (not the latest one unless you compile S# plugin with latest samgdk)
Forum: Plugin Development 01/01/2020, 09:59 AM
Replies: 443
Views: 105,029
Posted By Banditul18
Re: SampSharp - Write gamemodes in .NET

For me totally worth it, i learned so much about C# trying to make a gamemode. With C# you can create things easier and can apply 90% of C# principles like SOLID and other, also .net core is blazing...
Forum: Scripting Help 01/01/2020, 09:51 AM
Replies: 1
Views: 162
Posted By Banditul18
Re: Is SAMP scripting has taken from C++ ?

Pawn language is a C like language
Forum: Gamemode Scripts 01/01/2020, 12:23 AM
Replies: 6,020
[GameMode] PPC_Trucking V1
Views: 1,452,436
Posted By Banditul18
Re: PPC_Trucking V1

And what clean means? Because thats the original gamemode which was maintained
Forum: Scripting Help 22/12/2019, 01:23 PM
Replies: 1
Views: 145
Posted By Banditul18
Re: Business saving some things upon created not all

Because you are missing a mysql_query/mysql_tquery for the update query im the first code. You just have the mysql_format with the query but that query is never sended
Forum: Server Support 19/12/2019, 03:22 AM
Replies: 2
Views: 327
Posted By Banditul18
Forum: Scripting Help 08/12/2019, 10:08 AM
Replies: 2
Views: 222
Posted By Banditul18
Re: RolePlay Gamemode - LAG issue

Well the only samp overhead is that it can only execute a single thing at one point. So if there is a function that takes to much to complete it will hang the entire server. I suggest you use...
Forum: Scripting Help 24/03/2019, 09:02 AM
Replies: 3
Views: 229
Posted By Banditul18
Re: MySQL for production use

Is not bad but have alot of security holes that you need to fix to use it on production server(settings) as xampp is meant for easy development and give you access to alot of things out of box
Forum: Scripting Help 19/03/2019, 10:03 PM
Replies: 1
Views: 181
Posted By Banditul18
Re: strtok equivalent in this situation

Yeah that works but its working for the nesting? Like in this

if (strcmp(text, "news", true, 4))
{
if(strcmp(text,"1",true, 1) == 0)
{}
}

Because there is some code like that and...
Forum: Scripting Help 19/03/2019, 06:03 PM
Replies: 1
Views: 181
Posted By Banditul18
strtok equivalent in this situation

I know the code might be a bit long and not quite make sense but is from a kind of old gamemode and i try to understand it so i know what exactly happen (OnPlayerText)
Pastebin(so its not to long...
Forum: Scripting Help 19/03/2019, 03:13 PM
Replies: 6
Views: 378
Posted By Banditul18
Re: Problem with SQL query

Forgot to tell you something about your command actually:
YCMD:makeadminslot(playerid, params[], help)
{
new id,level,slot,query[512],DB:base;
if(PlayerInfo[playerid][pAdmin] < 4) return...
Forum: Scripting Help 19/03/2019, 10:26 AM
Replies: 4
Views: 263
Posted By Banditul18
Re: Question about the zeek compiler

You sure? The timestamps are same. Or did you just put same log 2 times?
Forum: Scripting Help 18/03/2019, 08:53 PM
Replies: 6
Views: 378
Posted By Banditul18
Re: Problem with SQL query

Thats SQLite not MySQL. %e not working with format but there is %q

OP: You need to use ' for strings

format(query, sizeof(query), "UPDATE admins SET Name = '%q' WHERE Slot = %d",...
Forum: Scripting Help 10/03/2019, 05:17 PM
Replies: 2
Views: 218
Posted By Banditul18
Re: Questions about MySQL

1. Depends on the need. InnoDB is good for almost everything(especially for tables where there alot of writing/reading). But MyISAM i would say is perfect for only reading scenario(huge amount of...
Forum: Scripting Help 09/03/2019, 10:14 PM
Replies: 6
Views: 288
Posted By Banditul18
Re: MySQL doesn't save a long string.

You realize you cant type more than 128 characters in chat right?

https://san-andreas-multiplayer-samp.fandom.com/wiki/Limits
Showing results 1 to 25 of 405

 

All times are GMT. The time now is 06:23 PM.


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