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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,831
» Latest member: fafre828
» Forum threads: 2,371
» Forum posts: 12,268

Full Statistics

Online Users
There are currently 421 online users.
» 0 Member(s) | 418 Guest(s)
Google, Bing, Yandex

Latest Threads
SAMP server trailer
Forum: Videos and Screenshots
Last Post: pmemorex2016
Yesterday, 02:34 PM
» Replies: 0
» Views: 10
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2026-01-03, 04:04 AM
» Replies: 9
» Views: 991
I recommend Xiaomi Rednot...
Forum: Tech
Last Post: NoxxeR
2026-01-03, 01:31 AM
» Replies: 0
» Views: 71
🌆 Final City RPG – Englis...
Forum: Advertisements
Last Post: Beanny
2026-01-02, 02:46 PM
» Replies: 0
» Views: 63
OLD GAMEMODE 0.3DL
Forum: Gamemodes
Last Post: su109551
2026-01-01, 06:59 PM
» Replies: 0
» Views: 95
Layanan cs Floa
Forum: General Discussions
Last Post: bratva
2025-12-31, 01:10 PM
» Replies: 5
» Views: 164
[ZA] ZOMBIE APOCALYPSE. ...
Forum: Advertisements
Last Post: AlCapone
2025-12-30, 12:02 PM
» Replies: 0
» Views: 81
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-30, 08:46 AM
» Replies: 2
» Views: 306
After School Roleplay - L...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-29, 09:47 PM
» Replies: 8
» Views: 629
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: NoxxeR
2025-12-29, 08:30 PM
» Replies: 11
» Views: 974

 
  ?? ??
Posted by: Gek - 2021-05-03, 08:11 PM - Forum: Other - No Replies

?? ??


  Problem with accent
Posted by: Kameko - 2021-05-03, 06:25 PM - Forum: Pawn Scripting - Replies (3)

Hello, when I compile my gamemode with accent on text, that don't work. If I remove the accent it's work.. How can I fix this error?


  [MAP] McDonald's
Posted by: Muksinjo - 2021-05-03, 02:56 PM - Forum: Videos and Screenshots - Replies (5)

Hope you like it, leave a comment :D



https://imgur.com/a/I1DUdIZ


  Long callback execution
Posted by: Snow - 2021-05-02, 02:10 AM - Forum: Pawn Scripting - Replies (9)

I am getting tons of long callback executions in my server logs, People told me the that I need to shorten my functions and optimize the code. This is one of the functions that also detects long callback execution. So I'm gonna need an example from this to fix the long execution. Hoping to get some help here.?



Code:
public OnPlayerExitVehicle(playerid, vehicleid)

{

? ? ? ? InCar[playerid] = 0;

? ? ? ? LastCar[playerid] = vehicleid;



? ? ? ? if(DeliveryMan[playerid])

? ? ? ? {

? ? ? ? ? ? for(new i; i<sizeof(BurritoSpawnInfo); i)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? if(GetPlayerVehicleID(playerid) == Burrito_ID[i])

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COLOR_COURIER, "* Press Y behind your vehicle to pickup the goods.");? ?

? ? ? ? ? ? ? ? }? ?

? ? ? ? ? ? }

? ? ? ? ? ?

? ? ? ? }

? ? ? ? return 1;

}


  YSI Daily Tips
Posted by: Y_Less - 2021-05-01, 05:25 PM - Forum: Pawn Scripting - Replies (44)

YSI Daily Tips

Almost every time I mention something about YSI someone says "oh, I didn't know it could do that".? This is maybe my fault for incomplete/deleted documentation, so I'm going to start writing one random snippet about YSI every day.? Hopefully these will all help you simplify your modes and improve your scripting.? I've also ported over the tips from the old YSI Secrets thread on the SA:MP forum. If you have any suggestions, questions, or your own YSI hints, feel free to share them here.

WARNING:? Don't copy and paste the examples

In order to get both indentation and syntax highlighting showing up, the "tabs" you see are actually underscores with the same colour as the background.? If you copy text verbatim from this thread, you'll come away with extra characters you don't want.


  refresh query every 1 sec
Posted by: Zow - 2021-05-01, 11:40 AM - Forum: Pawn Scripting - Replies (4)

I want to refresh pCoin after people refill wallet

but I don't know how to do it better

just want real time Coin after refill



Code:
ptask RefreshCoinTimer[1000](playerid) {

? ? if (!LoginStatus[playerid]) {

? ? ? ? return 0;

? ? }

? ? new

? ? ? ? query[100]

? ? ;

? ? mysql_format(dbCon, query, sizeof(query),

? ? "\

? ? ? ? SELECT \

? ? ? ? ? ? pCoin \

? ? ? ? FROM \

? ? ? ? ? ? players \

? ? ? ? WHERE \

? ? ? ? ? ? ID= %d\

? ? ",

? ? ? ? PlayerInfo[playerid][pID]

? ? );

? ? mysql_tquery(dbCon, query, "RefreshCoin", "i", playerid);

? ? return 1;

}



forward RefreshCoin(playerid);

public RefreshCoin(playerid) {

? ? cache_get_value_name_int(0, "pCoin", coin);



? ? PlayerInfo[playerid][pCoin] = coin;

}


  Night Deathmatch Gamemode (silent aimbot, wallshot, speed hack %100 fixed.)
Posted by: Hata - 2021-05-01, 10:27 AM - Forum: Gamemodes - Replies (3)

Removed.


  [SOLVED] How to quickly find ERROR results in the old Build Result Pawncc compiler ?
Posted by: PutuSuhartawan - 2021-04-30, 11:17 PM - Forum: Pawn Scripting - Replies (6)

SOLUTION:

Code:
Open the noteped text editor copy notification from compiler and paste to noteped editor, Finaly CTR  F a error words faster then



How to quickly find ERROR results in the old Build Result Pawncc compiler, i cant? CTRL F.

Frankly speaking, the result compiler system can't be CTRL F. So my eyes are dizzy looking for the error message because there are too many warnings, even more than 3000 warnings?


  [SOLVED] how make a correct IF function with for parameter vehicle ID == enum id
Posted by: PutuSuhartawan - 2021-04-30, 10:50 PM - Forum: Pawn Scripting - Replies (4)

SOLUTION:

Code:
stock IsPlayerInDealerVehicle(playerid)



{



new s; new invehicleid = GetPlayerVehicleID(playerid);



for( s=1; s<MAX_SALON_SLOT; s)



? ? ? ? {











for(new salon=1; salon<MAX_SALON; salon)



? ? ? ? {



? ? ? ? ? ? ?



? ? ? ? ? ? ? if(SalonCarIdSlot[salon][s] == invehicleid)



? ? ? ? ? ? ? {



? ? ? ? ? ? ??







? ? ? ? ? ? ? SetPVarInt(playerid, "UseIdSalon", salon);







SetPVarInt(playerid, "UseSlotSalon", s);



? ? ? ? ? ? ? new sVehSlotDeal = s;



? ? ? ? ? ? ? new salonDealID = salon;



? ? ? ? ? ? ? new st[160];



format(st,sizeof(st),"Anda yakin ingin membeli nomor tansport %i?\n\nModel: %s\nBiaya: $%i",



sVehSlotDeal ,NameCars(SalonModelSlot[salonDealID][sVehSlotDeal]),SalonPriseSlot[salonDealID][sVehSlotDeal]);



ShowPlayerDialog(playerid,64, DIALOG_STYLE_MSGBOX, "Pasar mobil", st, "Untuk membeli", "Keluarlah");



? ? ? ? ? ? ? return true;



? ? ? ? ? ? ? }



? ? ? ? ? ? ?







? ? ? ? }



}? ? ? ? ?











return 0;







}



how to make a correct IF function with the required parameter for a vehicle ID that has many Increments?

I find it difficult to match the player into a particular car.



Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

if(!ispassenger)

{

new slot=GetPVarInt(playerid,"SalonSlot");

new salon;

for(new s=1;s<MAX_SALON_SLOT;s)

? ? ? ? ? ? {

? ? ? ? ? ? ?







if(vehicleid == SalonCarIdSlot[salon][s] )

{

new st[160];

format(st,sizeof(st),"Anda yakin ingin membeli nomor tansport %i?\n\nModel: %s\nBiaya: $%i",slot,NameCars(SalonModelSlot[s][slot]),SalonPriseSlot[s][slot]);

ShowPlayerDialog(playerid,64, DIALOG_STYLE_MSGBOX, "Pasar mobil", st, "Untuk membeli", "Keluarlah");

}





}



}





// IS THE CODE TRUE FOR ?

// If function detect is that vehicle a vehicle created for dealer vehicle

}



How to display dialog style on certain vehicles group enum?


  No puedo entrar a muchos servidores.
Posted by: Chessy - 2021-04-30, 05:09 PM - Forum: Programaci?n - Replies (2)

hi there, i simply cannot connect to any server that i list, but when i go in the Internet tab it shows a lot of servers, and i can play them, but this ones not, for some reason not, i tried using the numeric IP and it either didn't work



Hola gente, tengo un problema, y es que simplemente no me puedo conectar a ninguno de los servidores que tengo en mi lista de favoritos, pero cuando voy a la pesta?a Internet me muestra un mont?n de servidores, a los cuales puedo jugar,?y si los agrego a mi lista tambi?n, excepto justo estos que muestro en la lista, tampoco cambiando la IP DNS por la num?rica afecta en nada



Qu? fue lo que prob?:

* Reinstalar el GTA y dejarlo virgen s?lo con SA-MP, reinstalar SA-MP solo

* Borrar todo lo del regedit relacionado a SA-MP

* Deshabilitar totalmente el Firewall de Windows, agregar SA-MP como excepci?n total

* Crear otro usuario de Windows

* Reiniciar el modem durante 10 minutos varias veces (no cambia nunca la IP)

* Trat? de usar otros launchers de SA-MP, tampoco, nada.

* Los VPN me andan muy lageados



Cuando hago ping a estos servidores con ping x en cmd funciona bien.



Qu? puede estar pasando? Alguna idea?



Es s?lo conmigo, tengo un amigo a 2 casas de distancia que tiene el mismo proveedor de internet y se puede conectar a todos estos. Ya no s? qu? hacer.



[Image: stv7wmT.jpg]