SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 434
Search took 0.02 seconds.
Search: Posts Made By: Fairuz
Forum: Server Support 06/08/2020, 05:45 PM
Replies: 19
Views: 640
Posted By Fairuz
Re: Ban System: Dealing with Dynamic IPs

This is actually a good idea and I do it sometime when got fed up by cheaters.
Forum: Scripting Help 06/08/2020, 05:41 PM
Replies: 3
Views: 174
Posted By Fairuz
Forum: Scripting Help 06/08/2020, 04:36 PM
Replies: 5
Views: 176
Posted By Fairuz
Forum: Scripting Help 06/08/2020, 12:58 AM
Replies: 3
Views: 174
Posted By Fairuz
Re: Increasing MySQL load performance

1. Does that really affect it that much?
2. I will try
3. What do you mean by normal pawn callback?
4. It is the latest. It was a typo
Forum: Scripting Help 05/08/2020, 04:20 PM
Replies: 3
Views: 174
Posted By Fairuz
Increasing MySQL load performance

I just updated to MySQL R41 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: 5
Views: 176
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: 5
Views: 176
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: 78
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: 824
Posted By Fairuz
Re: Textdraw Streamer

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

Rename the callback name. It's ambiguous.
Forum: Includes 28/07/2020, 04:55 PM
Replies: 9
Views: 581
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: 157
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,764
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,764
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,070
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: 363
Posted By Fairuz
Forum: Everything and Nothing 10/07/2020, 01:38 PM
Replies: 3
Views: 363
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: 273
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: 126
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: 126
Posted By Fairuz
Forum: Scripting Help 05/07/2020, 04:45 PM
Replies: 4
Views: 126
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,764
Posted By Fairuz
Forum: Scripting Help 03/07/2020, 01:22 PM
Replies: 2
Views: 148
Posted By Fairuz
Re: MySQL can't connect

Sorry for lack of information, I got it working anyway.
Showing results 1 to 25 of 434

 

All times are GMT. The time now is 09:18 AM.


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