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 18/02/2018, 01:55 PM
Replies: 4
Views: 280
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: 305
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: 251
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: 241
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: 241
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: 79
Views: 39,398
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: 245
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: 259
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: 289
Posted By Misiur
Re: R39 Upgrade R41 -

From the maintainer himself: http://forum.sa-mp.com/showthread.php?t=616103
Forum: Discussion 30/01/2018, 08:32 PM
Replies: 33
Views: 9,039
Posted By Misiur
Re: Pawn Linting/Static Analysis

Damn! That's a shame. Can you answer a few questions for me though? In which language did you write it? What's the performance of it for a "standard", non-modular, say, 100k lines project? How it...
Forum: Scripting Help 27/01/2018, 11:14 PM
Replies: 3
Views: 252
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: 221
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: 438
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: 621
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: 259
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: 769
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: 647
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: 878
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,045
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,045
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,045
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: 162
[Include] YSI 4
Views: 63,720
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...
Forum: Everything and Nothing 17/01/2018, 11:24 PM
Replies: 11
Views: 2,228
Posted By Misiur
Re: Loaded AMX viewer

Hello again!
So, I've tried to keep my activity on the project down low, but now I see 7 stars on github so I guess it ain't secret anymore.
Summary of my journey so far, with massive amount of...
Forum: Scripting Help 17/01/2018, 10:56 AM
Replies: 8
Views: 818
Posted By Misiur
Re: Server Crashing.

if(pInfo[playerid][pLevel] < pInfo[id][pLevel]) return ShowMessage(playerid, COLOR_RED, 6);
if(!IsPlayerConnected(id) || id == playerid || id == INVALID_PLAYER_ID)return...
Forum: Everything and Nothing 16/01/2018, 10:14 PM
Replies: 116
Views: 8,844
Posted By Misiur
Re: Is any of the old peeps around?

Nah, I'm totally not addicted to checking scripting help if there are any questions I can resolve.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:43 PM.


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