Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,086
» Latest member: Fecteve1
» Forum threads: 2,364
» Forum posts: 12,269

Full Statistics

Online Users
There are currently 221 online users.
» 0 Member(s) | 219 Guest(s)
Bing, Google

Latest Threads
will open.mp supports hig...
Forum: Questions and Suggestions
Last Post: Fecteve1
2 hours ago
» Replies: 3
» Views: 529
Parallel for missing iter...
Forum: Questions and Suggestions
Last Post: Fecteve
6 hours ago
» Replies: 3
» Views: 2,147
Error
Forum: Pawn Scripting
Last Post: MrKacu13
Yesterday, 05:33 PM
» Replies: 1
» Views: 117
FPS issues
Forum: General Discussions
Last Post: NoxxeR
2025-05-14, 11:55 AM
» Replies: 1
» Views: 126
Rockstar energy drink
Forum: Chat
Last Post: PawnFox
2025-05-12, 06:54 PM
» Replies: 1
» Views: 82
LS City Hall
Forum: Maps
Last Post: N0FeaR
2025-05-12, 09:06 AM
» Replies: 2
» Views: 1,148
How to save gangzones?
Forum: Pawn Scripting
Last Post: N0FeaR
2025-05-12, 08:49 AM
» Replies: 1
» Views: 432
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: Gatifula
2025-05-11, 08:53 PM
» Replies: 1
» Views: 1,017
Who got one
Forum: Questions and Suggestions
Last Post: adot1682
2025-05-11, 12:27 PM
» Replies: 0
» Views: 51
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: landau
2025-05-11, 10:21 AM
» Replies: 0
» Views: 50

 
  How to check if you have a vehicle in position
Posted by: Frajola - 2020-12-09, 01:37 AM - Forum: Support - Replies (3)

Hello guys, I have a problem. I'm making a garage system and I would like to know if there are any vehicles parked.





I tried that way, but the vehicle is created in the same position in the second wave, the system works perfectly until the second wave, the third time the truck is created on top of the other.



My English is bad, for a better interpretation of the problem, watch the video:?https://youtu.be/QOKytHFMVQQ

Code:
enum VacancyInfo

{

? ? Float:posX,

? ? Float:posY,

? ? Float:posZ,

? ? Float:posA

}

new TruckerVacancy[MAX_TRUCKER_VACANCY][VacancyInfo] =

{

? ? {2788.3999000,-2484.7000000,14.8000000,90.0000000},

? ? {2788.3999000,-2474.3999000,14.8000000,90.0000000},

? ? {2788.3999000,-2464.1001000,14.8000000,90.0000000},

? ? {2788.3999000,-2453.8000000,14.8000000,90.0000000},

? ? {2788.3999000,-2443.5000000,14.8000000,90.0000000},

? ? {2788.3999000,-2433.2000000,14.8000000,90.0000000},

? ? {2788.3999000,-2422.8999000,14.8000000,90.0000000}

};



#define IsVehicleInRangeOfPoint(%0,%1,%2,%3,%4)\

? ? (%1 >= GetVehicleDistanceFromPoint(%0, %2, %3, %4))



stock IsVehicleFromRangePointEx(Float:range, Float:x, Float:y, Float:z)

{

? ? foreach(new i: Vehicle)

? ? {

? ? ? ? return IsVehicleInRangeOfPoint(i, range, x, y, z);

? ? }

? ? return 0;

}



CMD:etruck(playerid, params[])

{

? ? for(new i; i < MAX_TRUCKER_VACANCY; i)

? ? {

? ? ? ? if(!IsVehicleFromRangePointEx(5.0, TruckerVacancy[i][posX],TruckerVacancy[i][posY],TruckerVacancy[i][posZ]))

? ? ? ? {

? ? ? ? ? ? CreateVehicleEx(403, TruckerVacancy[i][posX],TruckerVacancy[i][posY],TruckerVacancy[i][posZ],TruckerVacancy[i][posA], 0, 0);

? ? ? ? ? ? return 1;

? ? ? ? }

? ? }

? ? return 1;

}


  vehicle & Weapons Spawner
Posted by: pippepappe - 2020-12-08, 08:58 PM - Forum: Filterscripts - Replies (4)

Based on: https://pastebin.com/svXeeKgb

I modified this incomplete Filterscript, with more things.



Here my modified Filterscript:

https://pastebin.com/dVkJ1PN6



[Image: PjJISGx.jpeg]

[Image: y5rYo0u.jpeg]

[Image: 9CH0t4X.jpeg]



edit: Added screenshot. I didn't it before, cause i am lazy.


  Free/Premium SA-MP/CS-GO Hosting
Posted by: TonyP - 2020-12-08, 06:50 AM - Forum: Chat - Replies (8)

We are providing free and premium Game servers, SAMP is also included. Kindly?do check out our page for more info?https://www.limitlessgamers.xyz



*We posted this to help players get free SAMP?server, this is not posted with an intention to advertise*


  Free/Premium SA-MP/CS-GO Hosting
Posted by: TonyP - 2020-12-08, 06:46 AM - Forum: General Discussions - No Replies

We are providing free and premium Game servers, SAMP is also included. Kindly?do check out our page for more info https://www.limitlessgamers.xyz


  YSI or mysql error ?
Posted by: Russell99 - 2020-12-07, 09:17 PM - Forum: Support - Replies (2)

So when i run my samp-server.exe with ysi 4.0 , it says 1 model vehicle loaded. i updated to ysi 5 and comp it it says the same error in 4 and 5 :



Code:
[debug] Long callback execution detected (hang or performance issue)

[debug] AMX backtrace:

[debug] #0 00006550 in bool:HaveToRelocateOpcodes () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\opcode.inc:262

[debug] #1 00006570 in Opcode:RelocateOpcodeNow (Opcode:opcode=52) at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\opcode.inc:267

[debug] #2 000084bc in InitOpcodeTable () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\opcode.inc:811

[debug] #3 00008524 in Opcode:RelocateOpcode (Opcode:opcode=134) at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\opcode.inc:820

[debug] #4 000101bc in CodeScanInit (scanner[CodeScanner:164]=@02539f40) at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:971

[debug] #5 0001083c in AddressofResolve () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\addressof_jit.inc:89

[debug] #6 00012c7c in public AMX_OnCodeInit () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:367

[debug] #7 00002288 in public Debug_OnCodeInit () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_amx_impl.inc:206

[debug] #8 00001bdc in public ScriptInit_OnCodeInit () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_debug_impl.inc:659

[debug] #9 00000cd0 in ScriptInit_CallOnCodeInit (bool:jit=false) at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:193

[debug] #10 00000fec in public OnGameModeInit () at C:\Users\Russell\Desktop\Samp Clean Server\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:339

*** YSI Fatal Error: Out of code generation (CGen) space.? The current value of `CGEN_MEMORY` is `10000`, please recompile with a higher value (approximately 10006).

*** YSI Fatal Error: Out of code generation (CGen) space.? The current value of `CGEN_MEMORY` is `10000`, please recompile with a higher value (approximately 10012).

*** YSI Fatal Error: Out of code generation (CGen) space.? The current value of `CGEN_MEMORY` is `10000`, please recompile with a higher value (approximately 10018).

*** YSI Fatal Error: Out of code generation (CGen) space.? The current value of `CGEN_MEMORY` is `10000`, please recompile with a higher value (approximately 10024).


Shocked My code don't compiler
Posted by: Pavas - 2020-12-06, 07:46 PM - Forum: Support - Replies (3)

Greetings. I write here, because I have not returned to samp for a long time, and I wanted to go back, but something has surprised me, when I try to compile an fs, it does not compile (it does not throw errors, it just does not compile, neither in pawn, nor in sublime text, it only appears to me?that it is finished but the amx appears with a size of 0kb, that is, without information) I don't know what it could be, previous months nothing happened ..., I'm clearly on a new pc, but I don't think I have something see that it has 64 bits ...

If anyone could help me I would really appreciate it, thanks.





[Image: imagen-2020-12-06-134151.png]



[Image: imagen-2020-12-06-134438.png]


  Command doesn't work.
Posted by: Ryder Sixz - 2020-12-03, 04:17 PM - Forum: Pawn Scripting - Replies (3)

Hi, I have been trying to save a variable to mysql database, with this command:



Code:
CMD:ded(playerid, params[])

{

? ? new Query[256];

? ? Fondos[FondosFC] = 1000;

? ? format(Query, 200, "UPDATE `variableglobal` SET `FondosC`='%d'", Fondos[FondosFC]);

? ? mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid);

? ? return 1;

}



The problem is that when I check in the phpmyadmin, the variable is at 0, that is, it was not saved with the command. Does anyone know what is wrong with the code? thanks!


  Drink Machine
Posted by: DaZzY - 2020-12-03, 09:30 AM - Forum: Pawn Scripting - Replies (3)

HI ,



Any one know how to disable player?drink from vending machine ? i don't want player refill health from vending machine i try to remove it they are not removable


Lightbulb Optimization in pawno.
Posted by: AsteriskRin - 2020-12-03, 04:34 AM - Forum: Pawn Scripting - Replies (4)

Hello. I am still new at pawno. Could you tell me which one is more efficient from these code? These code has the same purpose.



First Code

Code:
forward test();

public test();

{

? ? new rows;

? ? for(new i = 0; i < rows; i) {

? ? ? ? new string[128];

? ? ? ? format(string, sizeof string, "%d is printed.", i);

? ? ? ? SendClientMessage(0, 0xFFFFFFFF, string);

? ? }

}



Second Code

Code:
forward test();

public test();

{

? ? new rows;

? ? new string[128];

? ? for(new i = 0; i < rows; i) {

? ? ? ? format(string, sizeof string, "%d is printed.", i);

? ? ? ? SendClientMessage(0, 0xFFFFFFFF, string);

? ? }

}


  Learn to pawn (basic/medium/advanced level)
Posted by: Ryder Sixz - 2020-12-02, 01:09 PM - Forum: Tutorials - Replies (3)

Hi, I know this may sound stupid XD but I do it with the best of intentions. Some time ago I downloaded a fairly complete tutorial on how to learn pawn. It is in Spanish (you can translate it in 1 second with the tool that Google Chrome brings) Well, I hope it is helpful for you. When you download it, you only have to open it with a browser.



ʚ�힫殺낟(nivel涫≲_medio_avanzado)+MPᚊ.htm/file]http://www.mediafire.com/file/82qh8180xe6ept2/[Tutorial]ʚ�힫殺낟(nivel涫≲_medio_avanzado)+MPᚊ.htm/file



Personally, he helped me a lot. All credits to the creator of that post!