SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 117
Search took 0.01 seconds.
Search: Posts Made By: Yousha
Forum: Tutorials 01/06/2018, 08:11 AM
Replies: 466
Views: 213,104
Posted By Yousha
Lightbulb Re: PAWN for SA-MP in Notepad++

Just a minor suggestion:

cd $(CURRENT_DIRECTORY)
"C:\Program Files (x86)\PAWN Compiler\pawncc.exe" "$(FILE_NAME)" "-d3" "-r" "-o2" "-v3" "-o$(NAME_PART).amx"

Or even:

cd...
Forum: Gamemode Scripts 26/05/2018, 11:46 AM
Replies: 207
Views: 69,645
Posted By Yousha
Re: [New | SAMP 0.3.7] World War IV

You could simply put this GM in Github/Gitlab and just merge fix/improvement commits...
Forum: Includes 19/05/2018, 08:18 AM
Replies: 54
Views: 38,638
Posted By Yousha
Re: [INC] strlib v1.3 - Simple string modification (Update: 21/10/09)

strlib.inc version: 1.3.0

#define _strlib_med_string 256

new sTemp[128], sReturn[_strlib_med_string];
// ...
strins(sReturn, sReplace, iIndex, iLengthReplace); // Line #124
Forum: Includes 17/05/2018, 05:02 PM
Replies: 54
Views: 38,638
Posted By Yousha
Forum: Includes 16/05/2018, 12:46 PM
Replies: 54
Views: 38,638
Posted By Yousha
Lightbulb Re: [INC] strlib v1.3 - Simple string modification (Update: 21/10/09)

IK that, but PHP's version of same code works fine:

$source = "123,456,789";
$dest = explode(",", $source);
printf("%s %s %s", $dest[0][1], $dest[0][2], $dest[1][2]);

Result:
Forum: Includes 16/05/2018, 12:25 PM
Replies: 54
Views: 38,638
Posted By Yousha
Exclamation Re: [INC] strlib v1.3 - Simple string modification (Update: 21/10/09)

I think there's a bug with "explode()" function:


new source[12] = "123,456,789";
new dest[3][4];

explode(dest, source, ",");
printf("%s %s %s", dest[0][1], dest[0][2], dest[1][2]);
Forum: Filterscripts 23/02/2018, 02:47 PM
Replies: 131
[FilterScript] Police Flash V1.0
Views: 66,420
Posted By Yousha
Re: Police Flash V1.0

yea put these codes into a function instead of copy/paste it everywhere:

obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
obj2[vehicleid] =...
Forum: Everything and Nothing 26/10/2017, 08:02 AM
Replies: 5
Views: 880
Posted By Yousha
Re: .gitignore and .gitattributes for Git

Thanks for the feedback



Good point, but:

1- What if someone don't use VSCode to work with your codes? (like Notepad++ or Atom or Sublime)
Then those encode-specific data breaks in their...
Forum: Everything and Nothing 25/10/2017, 01:05 PM
Replies: 5
Views: 880
Posted By Yousha
Post .gitignore and .gitattributes for Git

Nothing special, just a good .gitignore and .gitattributes for PAWN developers who uses Git SCM:

Contains OS files(Win/Linux/Mac), IDE files, build automation, source control managers and PAWN...
Forum: Plugin Development 16/09/2017, 12:45 PM
Replies: 54
Views: 32,688
Posted By Yousha
Re: Memory access plugin

Files Not found.
Forum: Filterscripts 12/09/2017, 05:26 PM
Replies: 4,020
Views: 2,234,033
Posted By Yousha
Re: Useful Functions

Just some minor changes:


// stock GetWeaponSlotID(const weaponid)
stock GetWeaponSlot(const weaponid)
{
switch(weaponid)
{
case 0,1: return 0;
case 2 .. 9: return 1;
Forum: Server Support 10/09/2017, 11:34 AM
Replies: 2
Views: 440
Posted By Yousha
Re: MySql Error

use MySQL plugin R39-6 and read the the FAQ at here:
https://github.com/pBlueG/SA-MP-MySQL
Forum: Filterscripts 08/09/2017, 05:17 PM
Replies: 188
Views: 61,609
Posted By Yousha
Re: MapFix - texture bugs fixes

I think you shouldn't include <a_samp>, since it's already included by the user...
(in Include version)
Forum: Scripting Help 07/09/2017, 09:01 AM
Replies: 3
Views: 400
Posted By Yousha
Re: Server Crash

No info/detail = no help
Forum: News and Updates 06/09/2017, 10:21 AM
Replies: 109
Views: 87,697
Posted By Yousha
Re: SA-MP 0.3.7 R2-2 server update

I think there's a problem with this release... when I upgraded my SA-MP server to R2-2 and R2-2-1 I got some errors with FCNPC plugin:

[FCNPC] Error: NPC 'npc0' not created. Name 'npc0' is invalid...
Forum: Scripting Help 13/08/2017, 07:58 AM
Replies: 9
Views: 580
Posted By Yousha
Re: Mysql Eroor R38

dude, put your codes here... login codes
Forum: Scripting Help 12/08/2017, 05:15 PM
Replies: 9
Views: 580
Posted By Yousha
Re: Mysql Eroor R38

1- You tried to execute an EMPTY query. like mysql_query(" ");
2- You have a double semi-colon somewhere.
3- You are calling mysql_query() twice at once.
Forum: Includes 11/08/2017, 09:14 AM
Replies: 10
[Include] YSI 3.1
Views: 48,322
Posted By Yousha
Re: YSI 3.1

Is there any benchmark or performance/speed test for YSI libs?
Forum: Scripting Help 11/08/2017, 08:42 AM
Replies: 9
Views: 580
Posted By Yousha
Re: Mysql Eroor R38

Put a simple print around your Queries to see the source of error...

Also I think you can use MySQL R39-6 without any API/Code change
https://github.com/pBlueG/SA-MP-MySQL/releases
Forum: Scripting Help 10/08/2017, 03:26 PM
Replies: 1
Views: 374
Posted By Yousha
Question Unit Testing

Hey

Is there any Unit Testing tool for SA-MP scripts or even Pawn language?
I found one but its very simple and almost useless:

https://github.com/alldroll/amx-utest

Thanks in advance.
Forum: Includes 06/07/2017, 05:40 PM
Replies: 177
Views: 41,860
Posted By Yousha
Re: dini2.inc - Improved dini file processor with amazing benchmarks (aka. gini)!

I think this should be iDini, not Dini2... because there is no API change, right?
Forum: Scripting Help 30/06/2017, 01:47 PM
Replies: 3
Views: 523
Posted By Yousha
Forum: Scripting Help 30/06/2017, 08:16 AM
Replies: 3
Views: 523
Posted By Yousha
Forum: Scripting Help 25/06/2017, 06:53 PM
Replies: 3
Views: 523
Posted By Yousha
Question Alpha object Id

Hi

Anyone know object Id of this Alpha on the picture? I couldn't find it...
This alpha is masked on some Fences(Id 10611) at Queens in SF.

http://uupload.ir/files/0mb7_2a41_sa-mp-001.png
Forum: Scripting Help 24/06/2017, 08:50 AM
Replies: 1
Views: 412
Posted By Yousha
What is purpose of db_debug_openresults

Hi

What is purpose of SQLite:db_debug_openresults?
I couldn't find anything in Wiki...

Thanks in advance
Showing results 1 to 25 of 117

 

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


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