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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,506
» Latest member: nohuvin
» Forum threads: 2,233
» Forum posts: 12,033

Full Statistics

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

Latest Threads
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
Yesterday, 06:36 PM
» Replies: 0
» Views: 28
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 31
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 50
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 451
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 49
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 66
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 59
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 454
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,460
SA:MP forum offline
Forum: Portuguese/Portugu?s
Last Post: weslley_script
2024-11-09, 05:27 PM
» Replies: 7
» Views: 9,901

 
Heart TOP 10 MySQL list
Posted by: Blood - 2024-06-30, 04:52 PM - Forum: Pawn Scripting - Replies (1)

Hey, I was wondering if someone could help me out writing a code for displaying TOP 10 players by a parameter, for example top 10 with highest score.
I know how to do it in the oldest MySQL, but I havent been around for some time and can't figure out how to do it with the newest version.
This is my old code

Code:
mysql_query("SELECT `Score` ,`User` FROM `table` ORDER BY `Score` DESC LIMIT 10");
mysql_store_result();
new id,output[600], str[64];
while(mysql_retrieve_row())
{
    id ++;
    new username[24], scorevariable[5];
    mysql_fetch_field_row(username, "Username");
    mysql_fetch_field_row(scorevariable, "Score");
    format(str,sizeof str, "%i. %s - %i score\n",id,username,strval(scorevariable));
    strcat(output, str);
}
mysql_free_result();
ShowPlayerDialog(playerid,1945,0,"Score top list",output,"Close","");


  Issue with compiler
Posted by: LARP Head Admin - 2024-06-30, 08:56 AM - Forum: Pawn Scripting - Replies (1)

Hi,

I'm trying to convert over our old SA:MP script to the latest version of O:MP, I've unfortunately gotten stuck at the first hurdle.


I'm getting a very basic error after seemingly doing everything correct.

I've downloaded the latest server exec (I haven't found much documentation on what else I need to be downloading) which should have all the up to date includes etc related to the standard release of O:MP.

The error I'm getting is:

Quote:\OpenMP LARP Script\gamemodes\new_0.1.9.pwn(32) : fatal error 100: cannot read from file: "openmp\openmp"

after doing what the compatibility post said (below):

Quote:#define OPENMP_COMPAT
#include <openmp\openmp>

Now I completely realise that I do not have the Openmp\openmp directory what so ever, so essentially my question is where do I find it, I've been looking for quite some time now.

I apologise if I'm just being a retard and its somewhere plainly obvious.


  Further development of OMP
Posted by: alexdrift - 2024-06-29, 10:51 PM - Forum: Questions and Suggestions - Replies (1)

Hello I am from Russia. I would like to receive information on the further development of Open Multiplayer? Should we wait for further development of the server and client side? will the launcher and samp.dll R5 be packaged into a single installation file? or will you develop your own client? My goal is to support Open Multiplayer in Russia, I have my own forum. So what can Russian society expect? Can we look forward to further development of Open Multiplayer?


  delete
Posted by: Blood - 2024-06-28, 08:56 PM - Forum: Pawn Scripting - No Replies

nvm.....


Question Change Vehicle Color After Respawn
Posted by: LuvaDePedreiro - 2024-06-28, 12:54 PM - Forum: Pawn Scripting - Replies (6)

Hello everybody! I have a question about a possible problem I am facing. I added some vehicles using the "AddStaticVehicleEx" function with a respawn delay of 300 seconds, and with colors already defined. Is it possible to make the colors change after it respawns? The way I'm trying to make this work is to use the "OnVehicleSpawn" callback with the "ChangeVehicleColor" function. However, after the vehicle is respawned, the color remains the same.

PHP Code:
public OnVehicleSpawn(vehicleid)
{
ChangeVehicleColor(vehicleidrandom(127), random(127));
return 
1;


  Server not on Internet Tab
Posted by: Blood - 2024-06-26, 09:51 PM - Forum: Support - No Replies

So what's going on with the listing? I have read that there were some problems not long ago that you had to pay for your server to be even listed in the Internet Tab? I would like to get an update, is that still so? Because I just started a server and it is not showing up in the Internet Tab.


  [HELP] Prevent Spoofed Dialog Attack
Posted by: hilmanXcode - 2024-06-25, 08:21 PM - Forum: Pawn Scripting - Replies (2)

Hello, bro
how to prevent attack from https://wiki.blast.hk/ru/moonloader/lua/...ogResponse ?


  Ajuda script pls
Posted by: DOCA - 2024-06-25, 07:00 AM - Forum: Portuguese/Portugu?s - Replies (2)

  • Estou tentando ligar minha GameMode e está dando esse Erro no crashDetect.
    OBS: Eu coloquei ela na Host e não quis ligar, mas na minha maquina Liga.

    Code:
    [debug] Long callback execution detected (hang or performance issue)
    [debug] AMX backtrace:
    [debug] #0 0000aec4 in DOF2_ParseFile (file[]=@001b4d70 "Logs/Recorde.ini", extraid=-1, bool:callback=false) at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\DOF2.inc:1059
    [debug] #1 0000a2f4 in DOF2_GetStringEx (file[]=@001b4d70 "Logs/Recorde.ini", key[]=@001b4db4 "RecordeNum", result[]=@002d91e4 "", size=16, tag[]=@00299294 "") at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\DOF2.inc:698
    [debug] #2 0000a4f8 in DOF2_GetInt (file[]=@001b4d70 "Logs/Recorde.ini", key[]=@001b4db4 "RecordeNum", tag[]=@00299294 "") at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\DOF2.inc:865
    [debug] #3 000138f8 in public Itter_OnGameModeInit () at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\gamemodes\thugbrasil.pwn:1020
    [debug] #4 native CallLocalFunction () in samp-server.exe
    [debug] #5 00010204 in public zcmd_OnGameModeInit () at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\foreach.inc:689
    [debug] #6 native CallLocalFunction () in samp-server.exe
    [debug] #7 0000f90c in public SSCANF_OnGameModeInit ()  at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\zcmd.inc:68
    [debug] #8 00001764 in public OnGameModeInit () at C:\Users\LLLTR.DESKTOP-RTSLUFF\Desktop\ThugBrasilV1\pawno\include\sscanf2.inc:118

    Me ajugem !!!!


  Running style
Posted by: SuperNatural - 2024-06-25, 04:38 AM - Forum: Programming - Replies (1)

Hello, I'm a junior SAMP developer. I started a gamemode from the beginning and I'm having some troubles with the skins. The ID 0 (CJ) runs normal, but other skins run in different way. I know this might be a easy trouble to fix, but I can't find any documentation about. So, how can I change the running style in all the other skins and make them to run like CJ?

Thanks for your help, and I hope not to be a fool. lol


Star Magic DeathMatch/Freeroam
Posted by: Lezduit - 2024-06-24, 05:47 AM - Forum: Gamemodes - No Replies

Hello to you OPEN.MP Community!

I'm new to pawn and I made a gamemode with the help of AI (ChatGPT) in the hopes of getting a good gamemode. It didn't work well... Anyway, I have nothing to do with this mode, and I do need some feedback about this mode. So you are more than welcome to try it out.
(Most of the Teleports and Commands were made by me, the rest is GPT.)


Let me tell you what this mode has:

  • DeathMatch System - by me
  • Register & Login System - by me
  • Weapons System (temp) - by me
  • V.I.P System by ZigGamerX
  • Fly System by Vishnu
  • Advanced Speed-O-Meter by MNA
  • Football System by Farkias
  • PM system by hobo101 aka MarkNelson V0.1
  • Xtreme Admin System by SharkyKH





Teleports:
  • /LV - Las Venturas
  • /SF - San Fierro
  • /LS - Los Santos
  • /Race
  • /Ap - LV Airport
  • /Army - Area 69
  • /Ramp
  • /Jump
  • /Drift
  • /Jeeps
  • /Police - LV Police
  • /Swamp
  • /Chiliad
  • /Casino
  • /Casino 2


Commands:

  • /Help - Show Help Dialog
  • /Tele - Teleport list
  • /HelpMe - Send a help message to staff
  • /DM - List of Deathmatch zones
  • /Admins - Connected Admins
  • /Kill - Kill yourself
  • /Afk - Enter/Exit AFK mode
  • /VHelp - VIP Help ONLY
  • /N - Adds nitro to car
  • /Fix - Fix car
  • /startfootball (admins only)
  • /Rules - Show server rules
  • /Fly - Fly in the server
  • /PM - Send private message
  • /Credits - Show credits

Pics:
https://imgur.com/a/9FiNXyx


RAW pawn code:
https://pastelink.net/bm1tc8fu
https://paste.mozilla.org/yq9RvB8K


Download .pwn only:
https://www.mediafire.com/file/h662b7w0u...1.pwn/file




Download with all folders:
https://www.mediafire.com/file/fapy4dyg3...P.rar/file
OR
https://github.com/demboez/Magic-DM-Free...g/GameMode


Hope you will enjoy and im waiting for your feedback on it!