SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 431
Search took 0.02 seconds.
Search: Posts Made By: Fairuz
Forum: Scripting Help 03/07/2020, 01:22 PM
Replies: 2
Views: 102
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: 102
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: 24
Views: 6,691
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: 177
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: 177
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{...
Forum: Everything and Nothing 25/06/2020, 08:54 PM
Replies: 27
Views: 3,478
Posted By Fairuz
Re: How long did it take you to learn Pawn programming language?

Played sa-mp around 2012/2013(golden days for me back then) started scripting in 2014/2015(just simple things like changing text, moving positions and using a lot of FS' lol) learned it through the...
Forum: Scripting Help 18/06/2020, 08:55 AM
Replies: 2
Views: 89
Posted By Fairuz
Re: Progress bar not showing up

Yes, apparently MapFix caused this, not sure though.. I'll try to test more without MapFix
Forum: Scripting Help 18/06/2020, 05:33 AM
Replies: 1
Views: 74
Posted By Fairuz
Re: I get an eror at my roulette sistem

GivePlayerCash(i, x != 1 ? PlaceBet[i][x] * 2 : PlaceBet[i][x] * 14);
Forum: Scripting Help 18/06/2020, 05:29 AM
Replies: 2
Views: 89
Posted By Fairuz
Progress bar not showing up

My progress bar doesn't show up, however it works before I updated my gamemode.
stock ShowProgressBar( playerid, title[ 64 ], progress_id, total_time = 1000, color, params = 0 )
{
if (...
Forum: Scripting Help 17/06/2020, 03:16 PM
Replies: 1
Views: 99
Posted By Fairuz
Re: OnPlayerRequestSpawn return is not called

Fixed.
This is because of fixes include.
Forum: Scripting Help 16/06/2020, 07:32 PM
Replies: 1
Views: 99
Posted By Fairuz
OnPlayerRequestSpawn return is not called

hook OnPlayerRequestSpawn( playerid )
{
printf( "called ONPLAYERREQUESTSPAWN");
return IsPlayerClassApproved( playerid );
}
stock IsPlayerClassApproved( playerid ) {

// is logged in
if (...
Forum: Includes 13/06/2020, 04:54 AM
Replies: 1,351
Views: 335,008
Posted By Fairuz
Re: Nex-AC - Anticheat system

Vehicle Fly Hack/ Surfly is only detected at certain speed? Is this expected?
Forum: Scripting Help 12/06/2020, 08:27 AM
Replies: 6
Views: 149
Posted By Fairuz
Re: Adding percentage value

It's still incorrect unfortunately.
just an information, "vehtaxrate" is how much percent i wanted to add per vehicles.
AddServerVariable( "vehtaxrate", "1.0", GLOBAL_VARTYPE_FLOAT );
Forum: General 12/06/2020, 04:33 AM
Replies: 41
Views: 2,550
Posted By Fairuz
Forum: Scripting Help 11/06/2020, 05:30 PM
Replies: 6
Views: 149
Posted By Fairuz
Re: Adding percentage value

I'm trying to add 1% per vehicle.
Forum: Scripting Help 11/06/2020, 05:25 PM
Replies: 6
Views: 149
Posted By Fairuz
Adding percentage value

I have this var which deducts players money because it's tax.

new Float: tax_discount = p_VIPLevel[ playerid ] >= VIP_DIAMOND ? 0.5 : 1.0;
new Float: tax_rate = GetGVarFloat( "taxrate" ) *...
Forum: Scripting Help 09/06/2020, 08:29 AM
Replies: 4
Views: 148
Posted By Fairuz
Re: Global Chat ingame error

You are using the deprecated method of foreach, just a heads up..
Forum: Scripting Help 07/06/2020, 10:09 PM
Replies: 7
Views: 301
Posted By Fairuz
Re: Detecting player's selected dialog

Great library I must say! I never think about using it but I think I might use it in the future.
But I have an error here:
new
szFish[ MAX_PLAYER_NAME ],
Float:...
Forum: Scripting Help 07/06/2020, 10:19 AM
Replies: 7
Views: 301
Posted By Fairuz
Re: Detecting player's selected dialog

Inputtext always returns 54. Any ideas?


EDIT: Fixed it. Is there anyway i can get the weight value?
Forum: Includes 06/06/2020, 06:23 PM
Replies: 11
[Include] Optidraw
Views: 2,807
Posted By Fairuz
Re: Optidraw

Dynamic objects when player selecting class is not there,how do I fix it? change them to static?
Forum: Scripting Help 06/06/2020, 11:32 AM
Replies: 7
Views: 301
Posted By Fairuz
Re: Detecting player's selected dialog

Sorry I don't get it. Can you elaborate more?
Forum: Scripting Help 05/06/2020, 02:49 PM
Replies: 7
Views: 301
Posted By Fairuz
Re: Detecting player's selected dialog

I don't think that works since it doesn't detect the fishid and weight. Is there anyway I can pass the value?
Forum: Scripting Help 05/06/2020, 04:46 AM
Replies: 7
Views: 301
Posted By Fairuz
Detecting player's selected dialog

So I make this dialog that checks user's fish, and I wanted to detect what player's selecting

CMD:fishes( playerid, params[ ] )
{
format( szBigString, 160, "SELECT `FISH`, `WEIGHT` FROM...
Forum: Scripting Help 03/06/2020, 03:30 PM
Replies: 2
Views: 80
Posted By Fairuz
parameter always return null

else if ( !strcmp( params, "tag", false, 3 ) )
{
new
gangid = p_GangID[ playerid ];

if ( gangid == INVALID_GANG_ID ) return SendError( playerid, "You are not inside any gang." );
if...
Forum: Scripting Help 03/06/2020, 09:17 AM
Replies: 10
Views: 215
Posted By Fairuz
Re: AttachObjectToPlayer dissapears

Compile your code with -d3 flag and load crashdetect plugin
Showing results 1 to 25 of 431

 

All times are GMT. The time now is 12:38 PM.


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