SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 243
Search took 0.01 seconds.
Search: Posts Made By: FailerZ
Forum: Scripting Help 10/03/2020, 05:32 PM
Replies: 28
Views: 496
Posted By FailerZ
Re: Ammunation problem

Remove the static put new instead like this
new string[sizeof(AmmuData) * sizeof(subString)];
Forum: Scripting Help 10/06/2019, 02:06 PM
Replies: 2
Views: 121
Posted By FailerZ
Re: error 014: invalid statement; not in switch

Your DIALOG_CHARNAME is outside the switch brackets
Forum: Scripting Help 09/10/2018, 04:28 AM
Replies: 5
Views: 343
Posted By FailerZ
Re: Where should I declare variable with good performance

1. The first solution is called local variable, Which means it can only be accessed within the function it is declared into only and then it is removed from memory.
The second solution is called...
Forum: Everything and Nothing 30/08/2018, 07:03 AM
Replies: 16
Views: 1,148
Posted By FailerZ
Re: Welcome back!

Haha I thought they have banned my country, I was worried.
Forum: Scripting Help 13/07/2018, 02:24 PM
Replies: 2
Views: 222
Posted By FailerZ
Re: Mysql Create Table Help

The compiler read these words meaning you didn't put them inside the string literals (double quotes)
Forum: Server Support 19/06/2018, 06:54 AM
Replies: 13
Views: 1,001
Posted By FailerZ
Re: Pawno Problem

Yeah,
-Create a text file called pawn.cfg (or open it if already exists) inside your pawno folder.
-Open the file and insert -Z in there. Save it.
-Recompile your script(s).
Forum: Server Support 18/06/2018, 10:20 PM
Replies: 13
Views: 1,001
Posted By FailerZ
Re: Pawno Problem

Try to use a different compiler.
Zeex compiler for example
https://github.com/pawn-lang/compiler/releases
Forum: Scripting Help 18/06/2018, 09:32 AM
Replies: 3
Views: 383
Posted By FailerZ
Re: Best way to save Server Settings [MySQL]

I would go with two columns multi rows,
Example:
settings table has:

Setting column as string
Value column as integer or w/e

Now you just insert rows:
isRegister value 0/1
isAds value 0/1
Forum: Scripting Help 18/06/2018, 08:25 AM
Replies: 5
Views: 355
Posted By FailerZ
Re: Breaking string lines inserting spaces

I reverted back to 3.10.5 and it works perfectly now!
The bug is in 3.10.6 and up
Thanks!

EDIT: The bug is in 3.10.7 only! I am very sorry i mistake it.
3.10.6 works fine!
Forum: Scripting Help 18/06/2018, 06:58 AM
Replies: 5
Views: 355
Posted By FailerZ
Re: Breaking string lines inserting spaces

It does work like this but i don't like the indentation, It should automatically ignore previous tabs
Forum: Scripting Help 18/06/2018, 06:30 AM
Replies: 5
Views: 355
Posted By FailerZ
Forum: Scripting Help 18/06/2018, 06:23 AM
Replies: 2
Views: 232
Posted By FailerZ
Re: number of arguments..

This is the correct way of retrieving string

new StoreName[28];
cache_get_field_content(0, "storename", StoreName);
format(rquery, sizeof(rquery), "[ROBBERY] %s(%d) has robbed %d from %s",...
Forum: Scripting Help 16/06/2018, 08:26 PM
Replies: 5
Views: 355
Posted By FailerZ
Breaking string lines inserting spaces

printf("Hello \
World");
Output:

Hello World


I want it to output

Hello World
Forum: Scripting Help 02/06/2018, 01:55 PM
Replies: 5
Views: 463
Posted By FailerZ
Re: sscanf and fusez map editor errors

First try to install Microsoft Visual C++ Redistributable 2015, if that doesn't work then update Windows.

Source: Exact same problem happened to my brother and he fixed it this way.
Forum: Scripting Help 28/05/2018, 11:08 PM
Replies: 9
Views: 414
Posted By FailerZ
Re: A lil help.

You have that variable commented..

// new id; becomes new id;
Forum: Scripting Help 28/05/2018, 10:43 PM
Replies: 3
Views: 293
Posted By FailerZ
Re: Problem with previewmodel.

You can try to zoom out in TextDrawSetPreviewRot and increase the textdraw size in TextDrawTextSize

Try this: (Changes are red colored)
TDEditor_TD[1] = TextDrawCreate(471.111145, 128.555541,...
Forum: Scripting Help 28/05/2018, 09:58 PM
Replies: 2
Views: 266
Posted By FailerZ
Re: CallRemoteFunction

//In the main filterscript
forward UpdateGamesPlayed(playerid);
public UpdateGamesPlayed(playerid)
{
Player[playerid][TotalGamesPlayed]++;
return 1;
}

//In the gamemode...
Forum: Server Support 23/05/2018, 08:45 PM
Replies: 3
Views: 916
Posted By FailerZ
Re: TextDraw errors.

I really suggest you to use http://wiki.sa-mp.com/wiki/GameTextForPlayer for this case.

But if you really want to use textdraws you can create a timer http://wiki.sa-mp.com/wiki/SetTimerEx to hide...
Forum: Scripting Help 23/05/2018, 06:22 PM
Replies: 5
Views: 354
Posted By FailerZ
Re: MYSQL is not inserting

Check the logs, are there any errors?
I suspect it could be the size/length of the query string variable, try increase it if it is low.
Forum: Scripting Help 22/05/2018, 08:31 PM
Replies: 5
Views: 629
Posted By FailerZ
Re: help shadows a variable at a preceding level

That warning means you have defined the variable "b" twice in the same scope.

Maybe you have a global variable named "b"? or you are not showing the whole cmd.
Forum: Scripting Help 22/05/2018, 05:53 PM
Replies: 6
Views: 384
Posted By FailerZ
Re: need to learn scripting

My usual go to includes are:
Primary (I always use)
zcmd (Include) - Commands processor
sscanf2 (Plugin) - Best for searching in strings
streamer (Plugin)- To allow bypassing the limits of the...
Forum: Filterscripts 17/05/2018, 11:57 AM
Replies: 32
Views: 6,569
Posted By FailerZ
Re: Dynamic Gate System V.2 by OsamaKurdi

Nice job brother keep it up
Forum: Scripting Help 19/04/2018, 06:03 PM
Replies: 2
Views: 350
Posted By FailerZ
Re: Strange problem with GameTextForPlayer

http://wiki.sa-mp.com/wiki/GameTextStyle

You are setting the gametext style to 1 which lasts for 8 seconds regardless of time set.

So better change it to another style, style 3 for example.
Forum: Scripting Help 03/04/2018, 06:08 PM
Replies: 2
Views: 389
Posted By FailerZ
Re: Error compiling filterscript.

There https://pastebin.com/tSXYwXzj

You were mistaking and placed the object codes under OnPlayerConnect, also you have tried to create the variable with the same name again.
Forum: Scripting Help 20/03/2018, 10:13 PM
Replies: 6
Views: 402
Posted By FailerZ
Re: Saving system

Index is going out of range due to loop going further than max businesses
So set the loop to less than (<) only

CMD:savebiz(playerid, params[])
{
new DB_Query[2000];
//Running a query to...
Showing results 1 to 25 of 243

 

All times are GMT. The time now is 07:58 PM.


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