SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Misiur
Forum: Scripting Help 22/04/2020, 09:28 AM
Replies: 3
Views: 217
Posted By Misiur
Re: Showing polish characters

How it displays without utf8 encoding conversion? There's also utf plugin and I belive it's something more suitable for fixing that issue within server internals until we force utf8 support built-in...
Forum: News and Updates 09/04/2020, 06:23 PM
Replies: 110
Views: 88,797
Posted By Misiur
Re: SA-MP 0.3.7 R2-2 server update

It's samp-server bug, I'm sifting through the binary to fix it
Forum: News and Updates 09/04/2020, 10:07 AM
Replies: 110
Views: 88,797
Posted By Misiur
Re: SA-MP 0.3.7 R2-2 server update

Filterscript loading is broken:

cat server.cfg
// ...
filterscripts DynamicBaseUpdate


Filterscripts
---------------
Loading filterscript 'DynamicBaseUpdate.amx'...
Forum: Plugin Development 09/04/2020, 06:44 AM
Replies: 176
Views: 228,686
Posted By Misiur
Re: sscanf - Now supports npcmodes

Could you add sampctl support?
Forum: Scripting Help 22/09/2019, 06:38 PM
Replies: 3
Views: 199
Posted By Misiur
Re: Trunk Weapon Problem

Show me ReturnWeaponIDSlot, it might return some value out of PlayerInfo[playerid][pWeaponsAmmo] or PlayerInfo[playerid][pWeapons] bounds.
Forum: Scripting Help 24/07/2019, 04:56 PM
Replies: 6
Views: 217
Posted By Misiur
Re: Money bar

Integer. Float is tricky when doing math on it or comparisons, fixed point is an overkill for samp.
Forum: Scripting Help 24/07/2019, 04:48 PM
Replies: 3
Views: 139
Posted By Misiur
Re: Run time error 4: "Array index out of bounds"

`RegisterCharTextDraw` is probably not `MAX_PLAYERS` sized. Check how it is declared
Forum: Scripting Help 24/07/2019, 04:45 PM
Replies: 6
Views: 217
Posted By Misiur
Re: Money bar

%010d for example if you keep money as an integer. `0` means "prefix with zeroes", "10" means "show 10 digits", "d" means integer (also "i" can be used instead)
Forum: Scripting Help 18/02/2018, 12:55 PM
Replies: 4
Views: 574
Posted By Misiur
Re: Underfined symbol

There's original plugin: http://forum.sa-mp.com/showthread.php?t=151076
And pluginless implementation: http://forum.sa-mp.com/showthread.php?t=370852
Forum: Scripting Help 11/02/2018, 07:28 PM
Replies: 8
Views: 464
Posted By Misiur
Re: Help and comments of Bolt Action Rifle system

Yup, you set the timer to be repeating:
SetTimer("cerrojoTime", 500, true);
// set it to
SetTimer("cerrojoTime", 500, false);
Forum: Scripting Help 11/02/2018, 12:46 PM
Replies: 6
Views: 472
Posted By Misiur
Re: stock vs function

There are three (simplified) scenarios:
1. You need a callback, or the function is called by a timer: use forward + public
2. You write a function in your gamemode. Do not use anything! Just write:...
Forum: Scripting Help 09/02/2018, 10:19 AM
Replies: 9
Views: 431
Posted By Misiur
Re: What`s wrong here

That's not the reason. Show 10 lines before and 10 lines after.
Forum: Scripting Help 07/02/2018, 03:20 PM
Replies: 5
Views: 453
Posted By Misiur
Re: expected token: "-string end-", but found "-identifier-"

Usually it's done a bit differently:
//instead
#define VIPHEADSHOW true
//just
#define VIPHEADSHOW

//instead
#if VIPHEADTAG == true //I assume you wanted to put VIPHEADSHOW here...
Forum: Tutorials 05/02/2018, 08:26 PM
Replies: 85
Views: 76,696
Posted By Misiur
Re: PAWN for SA-MP in Sublime Text 3

If you want to use faster pawn compiler without having to edit some libraries, use "-Z+" flag.
Forum: Scripting Help 05/02/2018, 05:02 PM
Replies: 5
Views: 502
Posted By Misiur
Re: Mysql - (error #1064)

Rename is a reserved keyword in SQL, that's why "`" helped.
Forum: Scripting Help 03/02/2018, 09:37 PM
Replies: 2
Views: 380
Posted By Misiur
Re: MySQL error

https://dev.mysql.com/doc/refman/5.7/en/keywords.html#keywords-5-7-detailed-L

I believe "Lock" is a reserved keyword. Try wrapping it in "`"
Forum: Scripting Help 30/01/2018, 07:48 PM
Replies: 3
Views: 613
Posted By Misiur
Re: R39 Upgrade R41 -

From the maintainer himself: http://forum.sa-mp.com/showthread.php?t=616103
Forum: Scripting Help 27/01/2018, 10:14 PM
Replies: 3
Views: 461
Posted By Misiur
Re: Undefinied symbol

Enum PlayerInfos doesn't contain those indexes. And it points at a better way to handle weapons (using an array wiht pWeapon), so stick to that.
Forum: Scripting Help 26/01/2018, 09:33 AM
Replies: 5
Views: 495
Posted By Misiur
Re: What causes array must be indexed (variable "")?

Spawned == false
Well, you want Spawned state of the current player, and Spawned is an array of players spawned status, so... Access it at playerid index?
Forum: Scripting Help 25/01/2018, 04:07 PM
Replies: 10
Views: 691
Posted By Misiur
Re: SQL Error

Look up "normalizing" tables, by Vince IIRC. When you start numbering fields (with a few exceptions), you are creating your structure wrong.
Forum: Scripting Help 23/01/2018, 11:48 PM
Replies: 5
Views: 878
Posted By Misiur
Re: Somebody helpme with sum of floats?

native Float:operator+(Float:oper1, Float:oper2) = floatadd;
This is an operator override for variables tagged with "Float", which is included by default with a_samp (float.inc to be exact)....
Forum: Scripting Help 21/01/2018, 11:20 PM
Replies: 2
Views: 546
Posted By Misiur
Re: Changes to mysql plugin

You're on a good path. cache_get_data can be replaced with cache_num_rows (which only returns number of rows). Check out...
Forum: Scripting Help 21/01/2018, 11:10 PM
Replies: 8
Views: 1,073
Posted By Misiur
Re: Server crash on cmd

Reread my post. One or the other - not both at the same time.
Forum: Scripting Help 19/01/2018, 05:09 PM
Replies: 4
Views: 1,095
Posted By Misiur
Re: OnPlayerTargetActor robberies

From quick glance at the include, it seems when you stop aiming at the actor the callback gets called with newtarget = INVALID_ACTOR_ID. Use that
Forum: Scripting Help 19/01/2018, 10:18 AM
Replies: 4
Views: 1,436
Posted By Misiur
Re: warning 201 from YSI

Could you search your gamemode for something like "#define isnull"? If you find it, remove the whole line as it is already provided by YSI.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:05 AM.


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