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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,495
» Latest member: luizluiz2520
» Forum threads: 2,412
» Forum posts: 12,359

Full Statistics

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

Latest Threads
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
11 hours ago
» Replies: 0
» Views: 36
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 63
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 51
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 191
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 275
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 330
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 330
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 138
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 229
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 187

 
  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!


  Advanced Model Selection Menu (eSelection)
Posted by: TommyB - 2020-12-02, 12:50 PM - Forum: Libraries - Replies (3)

eSelection



[Image: sampctl-eSelection-2f2f2f.svg?style=for-the-badge]



This library adds the ability to create dynamic model selection menus in your SA-MP gamemodes. It's an edit of the original eSelection include created by the developers of the Interactive Roleplay SA-MP server back in 2013. I've been using it in my own server for many years and made countless adjustments, fixes, optimizations and feature changes to it. After a bit of consideration, I decided to open source the changes I've made.



This edit (well, it's closer to a rewrite) makes use of dynamic PawnPlus containers, adds in an improved API, descriptive text per model preview and also adds the ability to call task-based menu responses, which will be demonstrated below.



[Image: wDal7si.png] [Image: kvkg8t8.png]



Installation



Simply install to your project:



Code:
sampctl package install TommyB123/eSelection



Include in your code and begin using the library:



PHP Code:
#include <eSelection> 



Functions



Adds a new model to a model selection list. Descriptive text and preview rotations are supported as optional arguments.



PHP Code:
AddModelMenuItem(List:menulistmodelid, const text[] = ""bool:usingrotation falseFloat:rotx 0.0Float:roty 0.0Float:rotz 0.0Float:zoom 1.0



Shows a model selection menu to a player. OnModelSelectionResponse will be called when using this function.



PHP Code:
ShowModelSelectionMenu(playerid, const header[], extraid, List:items



Shows a model selection menu to a player. Requires waiting for a PawnPlus task to receive the response results.



PHP Code:
Task:ShowAsyncModelSelectionMenu(playerid, const header[], List:items



Non-task-based model selection menu responses are handled via the callback below.



PHP Code:
public OnModelSelectionResponse(playeridextraidindexmodelidresponse



extraid is the ID of the model menu provided in ShowModelSelectionMenu. This functionality is similar to the dialog ID argument in ShowPlayerDialog.



index is the list index of the model that was clicked. If the first model in a menu is clicked, index will 0. If the second model is clicked, index will be 1. You get the point, I hope.



modelid is the model ID that was clicked. If a player clicks on skin ID 5 in a model menu, this variable would also be 5.



Relevant constants



MODEL_RESPONSE_CANCEL - Response value when a player cancels a model menu.



MODEL_RESPONSE_SELECT - Response value when a player clicks on a model inside of a model menu.



The following constants are used in the array response when handling a task-based model menu response.



E_MODEL_SELECTION_RESPONSE - The response value to be compared with the constants described above. Equiavelent to the response argument in OnModelSelectionResponse



E_MODEL_SELECTION_INDEX - The index of the model selection menu response. Equivalent to the index argument in OnModelSelectionResponse



E_MODEL_SELECTION_MODELID - The model ID of the model selection menu response. Equivalent to the modelid argument in OnModelSelectionResponse



Usage



Example of a traditional model selection response when using ShowModelSelectionMenu



PHP Code:
// define an ID for the model selection menu below

#define MODEL_SELECTION_SKIN_MENU (0)



ShowSkinModelMenu(playerid)

{

? ? 
// create a dynamic PawnPlus list to populate with models.

? ? // you don't need to worry about deleting this list, it's handled by the include once it's passed to it

? ? new List:skins list_new();



? ? 
// add skin IDs 0, 1, 29 and 60 with "cool people only" text above skin ID 29.

? ? AddModelMenuItem(skins0);

? ? 
AddModelMenuItem(skins1);

? ? 
AddModelMenuItem(skins29"Cool people only");

? ? 
AddModelMenuItem(skins60);



? ? 
// show the menu to the player

? ? ShowModelSelectionMenu(playerid"Skins"MODEL_SELECTION_SKIN_MENUskins);

}



// model selection response

public OnModelSelectionResponse(playeridextraidindexmodelidresponse)

{

? ? 
// make sure the extraid matches the skin menu ID

? ? if(extraid == MODEL_SELECTION_SKIN_MENU)

? ? {

? ? ? ? 
// make sure the player actually clicked on a model and not the close button

? ? ? ? if(response == MODEL_RESPONSE_SELECT)

? ? ? ? {

? ? ? ? ? ? 
// assign the player the skin of their choosing

? ? ? ? ? ? SetPlayerSkin(playeridmodelid);

? ? ? ? ? ? return 
1;

? ? ? ? }

? ? }





Example of waiting for a task-based model selection menu response with ShowAsyncModelSelectionMenu



PHP Code:
// enable the "await" syntax from PawnPlus before including it

#define PP_SYNTAX_AWAIT



ShowSkinModelMenu(playerid)

{

? ? 
// create a dynamic PawnPlus list to populate with models.

? ? // you don't need to worry about deleting this list, it's handled by the include once it's passed to it

? ? new List:skins list_new();



? ? 
// add skin IDs 0, 1, 29 and 60 with "cool people only" text above skin ID 29.

? ? AddModelMenuItem(skins0);

? ? 
AddModelMenuItem(skins1);

? ? 
AddModelMenuItem(skins29"Cool people only");

? ? 
AddModelMenuItem(skins60);



? ? 
// declare an array that will be populated with the model selection menu response data

? ? new response[E_MODEL_SELECTION_INFO];



? ? 
// use await_arr and set the response array to the model selection menu result

? ? await_arr(responseShowAsyncModelSelectionMenu(playerid"Skins"skins);



? ? 
// make sure the player actually clicked on a model and not the close button

? ? if(response[E_MODEL_SELECTION_RESPONSE] == MODEL_RESPONSE_SELECT)

? ? {

? ? ? ? 
// assign the player the skin of their choosing

? ? ? ? SetPlayerSkin(playeridresponse[E_MODEL_SELECTION_MODELID]);

? ? }





Credits



Interactive Roleplay Developer(s) - Original authors of this library



Me - Numerous feature updates, housekeeping, etc


  [Ajuda] Formata??o de Cronometro
Posted by: ztioluh - 2020-12-02, 11:20 AM - Forum: Portuguese/Portugu?s - Replies (2)

Estou criando um sistema de pris?o do zero que j? esta tudo ok por?m eu queria deixar o tempo exibido na textdraw no estilo "00:00:00".. atualmente fica "0:0:0".. E como n?o tenho experi?ncia o suficiente fiquei travado nisso.. Poderiam me ajudar a formatar dessa forma? Desde j? agrade?o.