SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 451
Search took 0.02 seconds.
Search: Posts Made By: Fairuz
Forum: Scripting Help 03/06/2020, 03:30 PM
Replies: 2
Views: 42
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: 9
Views: 133
Posted By Fairuz
Re: AttachObjectToPlayer dissapears

Compile your code with -d3 flag and load crashdetect plugin
Forum: Scripting Help 02/06/2020, 06:48 PM
Replies: 32
Views: 791
Posted By Fairuz
Re: Data being reset when connecting to server.

Do a reset either when player connects or player disconnects(just one of them)
and, are you trying to use foreach and y_iterate at the same time?
you don't need to use foreach if you're already...
Forum: Scripting Help 02/06/2020, 05:02 AM
Replies: 3
Views: 146
Posted By Fairuz
Re: Samp android

No need for plugins,it's only a simple check
Forum: Scripting Help 01/06/2020, 01:19 PM
Replies: 3
Views: 146
Posted By Fairuz
Re: Samp android

Checkout my code:
https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid
Forum: Scripting Help 01/06/2020, 07:19 AM
Replies: 3
Views: 104
Posted By Fairuz
Re: Optimize saving

Your code has the same principle right?
Forum: Scripting Help 01/06/2020, 07:16 AM
Replies: 11
Views: 258
Posted By Fairuz
Re: Const Correctness with Pawno Compiler version 3.10.10

You might want to disable the warning until you figure it out,so that you can still use other features and get bug fixes
Forum: Scripting Help 01/06/2020, 04:48 AM
Replies: 3
Views: 104
Posted By Fairuz
Optimize saving

Hello! So I made this fishing system, it inserts to a table everytime I fish, is there anyway this can be optimized by saving it to variable? and how?
forward PlayerFishing(playerid);
public...
Forum: Scripting Help 26/05/2020, 08:32 PM
Replies: 2
Views: 89
Posted By Fairuz
inconsistent return types (array & non-array)

Basically, I tried to set the string to "N/A" if the player is not in any faction.
stock GetPlayerFactionLevel( playerid )
{
static
string[ 16 ];
switch( p_FactionLevel{ playerid })
{...
Forum: Scripting Help 26/05/2020, 03:30 PM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

It works the same as Gameovr's. I had to click the spawn button.



As far as I know,that will call the OnPlayerSpawn twice..
Forum: Scripting Help 26/05/2020, 11:14 AM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

Yes, but I have to click the spawn button..
Forum: Scripting Help 26/05/2020, 10:54 AM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

Sorry my post was deleted because I had some extra code that interfere your solution.
Yes, I wanted the player to spawn directly without have to click the spawn button which your code does.
Forum: Scripting Help 26/05/2020, 10:27 AM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

It still calls the OnPlayerSpawn twice, if there's no better methods, I think i'll go with the first solution
Forum: Scripting Help 26/05/2020, 09:52 AM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

Sorry, could you elaborate more?
I set the player to spectate mode when connected and turned it off in login, right? Is that it?
Forum: Scripting Help 26/05/2020, 09:32 AM
Replies: 16
Views: 244
Posted By Fairuz
Re: Disabling Class Selection

I know you can't. I mean that the player is still choosing class.

Anyway that doesn't work,it calls the OnPlayerSpawn twice.
Forum: Scripting Help 26/05/2020, 09:13 AM
Replies: 16
Views: 244
Posted By Fairuz
Disabling Class Selection

I know that this topic has been submitted by other users many times, but i can't seem get to work for it. It always had drawbacks, for example it doesn't disable the F4 request class selection which...
Forum: Scripting Help 25/05/2020, 07:58 AM
Replies: 2
Views: 63
Posted By Fairuz
Re: Rows not found

It works. I still don't see any reason why my code is not..
Forum: Scripting Help 25/05/2020, 07:32 AM
Replies: 2
Views: 63
Posted By Fairuz
Rows not found

format( szBigString, 160, "SELECT u.`NAME`,t.`PROFIT`,t.`DATE` FROM `BUSINESS_LOGS` t INNER JOIN `USERS` u ON t.`PLAYERID`=u.`ID` WHERE BUSINESSID=%d ORDER BY DATE DESC LIMIT 10", iBusiness );...
Forum: Plugin Development 24/05/2020, 07:06 PM
Replies: 5,551
[Plugin] Streamer Plugin
Views: 3,273,448
Posted By Fairuz
Re: Streamer Plugin

Just stumbled across YSF plugin hours ago before you release the new version. I was really worried that the plugin is abandoned on RC stages. I will start using it again now. Is it more stable now?
Forum: Scripting Help 23/05/2020, 12:39 PM
Replies: 7
Views: 122
Posted By Fairuz
Re: strings returning blank

Recreating the system with enums seems appear to be working. Thank you guys.
Forum: Scripting Help 23/05/2020, 03:20 AM
Replies: 7
Views: 122
Posted By Fairuz
Re: strings returning blank

I don't think that's the problem since the other function works perfectly
Forum: Scripting Help 22/05/2020, 11:45 PM
Replies: 7
Views: 122
Posted By Fairuz
Forum: Filterscripts 22/05/2020, 07:54 PM
Replies: 3
Views: 1,045
Posted By Fairuz
Re: GPS System with Arrows on road.

Can you somehow increase the distance between the objects? as it's too much for me..
Forum: Scripting Help 22/05/2020, 07:49 PM
Replies: 7
Views: 122
Posted By Fairuz
Re: strings returning blank

I don't think you're right since this works normally:

"COL_GREY"V.I.P Level: %s%s\n"\
VIPToColor( p_VIPLevel[ pID ] ), VIPToString( p_VIPLevel[ pID ] )

stock VIPToString( viplvl )
{
static...
Forum: Scripting Help 22/05/2020, 07:35 PM
Replies: 7
Views: 122
Posted By Fairuz
strings returning blank

stock FactionToString( factionid )
{
static
string[ 16 ];

switch( factionid )
{
case 5: string = "CIA";
case 4: string = "Army";
case 3: string = "FBI";
Showing results 1 to 25 of 451

 

All times are GMT. The time now is 08:27 AM.


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