SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Misiur
Forum: Scripting Help 22/09/2019, 07:38 PM
Replies: 3
Views: 128
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, 05:56 PM
Replies: 6
Views: 149
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, 05:48 PM
Replies: 3
Views: 105
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, 05:45 PM
Replies: 6
Views: 149
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, 01:55 PM
Replies: 4
Views: 495
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, 08:28 PM
Replies: 8
Views: 423
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, 01:46 PM
Replies: 6
Views: 407
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, 11:19 AM
Replies: 9
Views: 384
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, 04:20 PM
Replies: 5
Views: 403
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, 09:26 PM
Replies: 82
Views: 58,892
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, 06:02 PM
Replies: 5
Views: 419
Posted By Misiur
Re: Mysql - (error #1064)

Rename is a reserved keyword in SQL, that's why "`" helped.
Forum: Scripting Help 03/02/2018, 10:37 PM
Replies: 2
Views: 345
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, 08:48 PM
Replies: 3
Views: 510
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, 11:14 PM
Replies: 3
Views: 416
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, 10:33 AM
Replies: 5
Views: 431
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, 05:07 PM
Replies: 10
Views: 626
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 24/01/2018, 12:48 AM
Replies: 5
Views: 811
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 22/01/2018, 12:20 AM
Replies: 2
Views: 485
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 22/01/2018, 12:10 AM
Replies: 8
Views: 977
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, 06:09 PM
Replies: 4
Views: 895
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, 11:18 AM
Replies: 4
Views: 1,278
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.
Forum: Scripting Help 19/01/2018, 11:09 AM
Replies: 23
Views: 1,550
Posted By Misiur
Re: Encryption

I'd suggest pbkdf2 but don't know if there are implementations for samp. Source for info about whirlpool being unsecure please.
Forum: Scripting Help 19/01/2018, 10:35 AM
Replies: 23
Views: 1,550
Posted By Misiur
Re: Encryption

$digest = hash('whirlpool', $salt.$password);

http://php.net/manual/en/function.hash.php
Forum: Scripting Help 18/01/2018, 05:08 PM
Replies: 23
Views: 1,550
Posted By Misiur
Re: Encryption

Salt all your passwords, and choose GPU-unfriendly hash function with a lot of iterations.
Forum: Includes 18/01/2018, 04:30 PM
Replies: 153
[Include] YSI 4
Views: 77,574
Posted By Misiur
Re: YSI 4

Hi guys! A little update: YSI has been moved from under my username onto the new github umbrella organisation for pawn related projects.

Also, I just published 4.0.2 zip package - get it from...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:25 PM.


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