SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 430
Search took 0.01 seconds.
Search: Posts Made By: Fairuz
Forum: Scripting Help 05/08/2020, 04:20 PM
Replies: 0
Views: 17
Posted By Fairuz
Increasing MySQL load performance

I just updated MySQL R39 and the loading time is so crap somehow.
thread OnEntrancesLoad( )
{
new
rows, i = -1, label[ 32 ],
loadingTick = GetTickCount( )
;

cache_get_row_count(...
Forum: Scripting Help 05/08/2020, 11:20 AM
Replies: 2
Views: 52
Posted By Fairuz
Re: MySQL R41: Returning value to char arrays gives error

Char arrays:
https://forum.sa-mp.com/showpost.php?p=1702382&postcount=4

It basically holds value only from 0 to 255, saves memory.
I haven't found another solution yet, the only solution I have...
Forum: Scripting Help 05/08/2020, 11:06 AM
Replies: 2
Views: 52
Posted By Fairuz
MySQL R41: Returning value to char arrays gives error

cache_get_value_int( 0, "COP_BAN", p_CopBanned{ playerid } );
This doesn't work somehow, it gives;
error 035: argument type mismatch (argument 3)

Any alternative?
Forum: Scripting Help 04/08/2020, 07:43 AM
Replies: 1
Views: 64
Posted By Fairuz
Re: Actors with fake weapons

That wouldn't look really good.. Use FCNPC instead of normal actor
Forum: Plugin Development 04/08/2020, 05:01 AM
Replies: 19
Views: 744
Posted By Fairuz
Re: Textdraw Streamer

OnPlayerClickDynamicTextdraw
Forum: Plugin Development 03/08/2020, 02:13 PM
Replies: 19
Views: 744
Posted By Fairuz
Re: Textdraw Streamer

Rename the callback name. It's ambiguous.
Forum: Includes 28/07/2020, 04:55 PM
Replies: 9
Views: 536
Posted By Fairuz
Re: Samp Advanced Kicks | Kick with reason | Kick with delay

What? I don't see any reason making an include for this, you can simply set timer just like Symon posted.
Anyway, your repo has extra word 's', so it should be. Mergevos/samp-advanced-kicks
Forum: Scripting Help 27/07/2020, 12:43 AM
Replies: 1
Views: 153
Posted By Fairuz
Object is hit but doesn't get detected

if(hittype == BULLET_HIT_TYPE_PLAYER_OBJECT && p_inShootingRange{ playerid })
{
for(new i = 0; i < 7; i++)
{
if(hitid == gPlayerShootingRangeObjects[playerid][i])
{...
Forum: Includes 26/07/2020, 12:24 AM
Replies: 8
[Include] Model Sizes SQL
Views: 1,735
Posted By Fairuz
Re: Model Sizes SQL

I still have the same problem
Forum: Includes 24/07/2020, 08:12 PM
Replies: 8
[Include] Model Sizes SQL
Views: 1,735
Posted By Fairuz
Re: Model Sizes SQL

How much memory does the file need? (I'm using sqlitei)
I keep getting
[03:04:34] SQLitei Warning: (db_autofree_result) The autofree pool is full!
[03:04:34] SQLitei Warning: (db_autofree_result)...
Forum: Scripting Help 24/07/2020, 07:07 PM
Replies: 1
Views: 125
Posted By Fairuz
Re: Query suddently stops

I just realized I missed a comma.
Forum: Scripting Help 24/07/2020, 06:39 PM
Replies: 1
Views: 125
Posted By Fairuz
Query suddently stops

static
Query[ 1424 ];

if ( IsPlayerNPC( playerid ) )
return 0;

if ( p_PlayerLogged{ playerid } )
{
new
bool: bQuitToAvoid = false;
Forum: General 21/07/2020, 07:11 AM
Replies: 22
Views: 2,034
Posted By Fairuz
Re: Getting players hooked more and more

I thought you posted random link but it's actually a great site. Thank you! I will look more into it
Forum: Everything and Nothing 10/07/2020, 03:26 PM
Replies: 3
Views: 347
Posted By Fairuz
Forum: Everything and Nothing 10/07/2020, 01:38 PM
Replies: 3
Views: 347
Posted By Fairuz
SA-MP Server with Go°gle Cloud Platform

Does anyone here uses GCP for their SA-MP Server?
Is there any issue if I'm using it for sa-mp server?
Forum: Scripting Help 09/07/2020, 03:04 PM
Replies: 8
Views: 268
Posted By Fairuz
Re: About difference

According to the thread yes, it also reduces your file size. but, I recommend you to use y_bit
https://forum.sa-mp.com/showthread.php?t=489897
Forum: Scripting Help 05/07/2020, 05:41 PM
Replies: 4
Views: 124
Posted By Fairuz
Re: Normal char array -> BitArray

Last question, do I have to reset it everytime player disconnects just like normal variables?
Forum: Scripting Help 05/07/2020, 05:15 PM
Replies: 4
Views: 124
Posted By Fairuz
Forum: Scripting Help 05/07/2020, 04:45 PM
Replies: 4
Views: 124
Posted By Fairuz
Normal char array -> BitArray

I want to convert normal char array to YSI's bit.
stock IsPlayerSpawned( playerid ) return p_Spawned{ playerid };

to
stock IsPlayerSpawned( playerid ) return Bit_Get(BitArray: p_Spawned{...
Forum: Tools and Files 05/07/2020, 03:21 PM
Replies: 13
[Tool/Web/Other] VisualTexture l Pawn - SA:MP
Views: 2,700
Posted By Fairuz
Forum: Scripting Help 03/07/2020, 01:22 PM
Replies: 2
Views: 144
Posted By Fairuz
Re: MySQL can't connect

Sorry for lack of information, I got it working anyway.
Forum: Scripting Help 03/07/2020, 02:27 AM
Replies: 2
Views: 144
Posted By Fairuz
MySQL can't connect

I'm migrating my server to a new one, setting up the database etc. but I my sa-mp server always failed to connect even though the password is right, I even can access it with mysql or phpmyadmin. How...
Forum: Plugin Development 01/07/2020, 02:44 PM
Replies: 27
Views: 7,694
Posted By Fairuz
Re: samp-precise-timers ⌚: A timer plugin written in the memory-safe Rust language. Check it out, you might like Rust!

So we just have to change SetTimer(also SetTimerEx) to SetPreciseTimer and KillTimer to DeletePreciseTimer?
Forum: Scripting Help 27/06/2020, 02:09 PM
Replies: 6
Views: 197
Posted By Fairuz
Re: Ternary operator

Thank you guys for helping me! Also Kwarde for your suggestion, I'll keep that in mind.
Forum: Scripting Help 26/06/2020, 08:30 AM
Replies: 6
Views: 197
Posted By Fairuz
Ternary operator

I read about ternary operator since weeks ago but still can't use it at some point

Can this be 'converted' to ternary operator to make the code looks simple? and how?
new bait = p_UsingBait{...
Showing results 1 to 25 of 430

 

All times are GMT. The time now is 05:21 PM.


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