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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 8,004
» Latest member: mocaoliden865
» Forum threads: 2,415
» Forum posts: 12,332

Full Statistics

Online Users
There are currently 252 online users.
» 1 Member(s) | 247 Guest(s)
Bing, Google, Applebot, Yandex, pmemorex2016

Latest Threads
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
2026-03-16, 08:24 AM
» Replies: 12
» Views: 2,460
[0.3.7 & 0.3.DL] Los Sant...
Forum: Advertisements
Last Post: renza1st
2026-03-16, 05:58 AM
» Replies: 0
» Views: 41
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2026-03-13, 11:17 AM
» Replies: 0
» Views: 66
Atlanta DeathMatch/Team D...
Forum: Advertisements
Last Post: NixaSha
2026-03-10, 04:57 AM
» Replies: 1
» Views: 93
mysql_samp
Forum: Plugins
Last Post: NullSablex
2026-03-10, 03:33 AM
» Replies: 0
» Views: 102
backtrace
Forum: Questions and Suggestions
Last Post: Lyvex
2026-03-09, 06:32 AM
» Replies: 0
» Views: 75
Open Multiplayer ✅ loggin...
Forum: Pawn Scripting
Last Post: walid_dz
2026-03-05, 04:19 AM
» Replies: 0
» Views: 176
Argonath RPG SA:MP Reviva...
Forum: Advertisements
Last Post: Melon_Sam
2026-03-03, 06:37 PM
» Replies: 1
» Views: 199
RevolutionX Since (2008) ...
Forum: Advertisements
Last Post: DerekZ905
2026-03-02, 02:46 PM
» Replies: 0
» Views: 110
Consulta warning mismatch...
Forum: Programaci?n
Last Post: carlosmcgrimes
2026-03-01, 04:26 PM
» Replies: 1
» Views: 179

 
  MySQL query doesn't trigger my function
Posted by: dock - 2023-08-16, 05:43 PM - Forum: Pawn Scripting - Replies (1)

Hello,

I've been trying to make a command that's gonna read my logs table on my MySQL database...

Here is the code

PHP Code:
if (!strcmp(by"Account"true)) {
format(conditionssizeof(conditions), "WHERE `Account` ");
}
else if (!
strcmp(by"ToAccount"true)) {
format(conditionssizeof(conditions), "WHERE `ToAccount` ");
}
else if (!
strcmp(by"Text"true)) {
format(conditionssizeof(conditions), "WHERE `Log` ");
}

if (
contains == 1) {
format(conditionssizeof(conditions), "%sLIKE '%"conditions);
format(conditionssizeof(conditions), "%s%s"conditionssearch);
format(conditionssizeof(conditions), "%s%%'"conditions);
}
else {
format(conditionssizeof(conditions), "%s= '%s' "conditionssearch);
}

new 
query[1024];
format(conditionssizeof(conditions), "%sAND lt.LogType = '%s' ORDER BY Timestamp %s LIMIT %d"conditionslogtypeorderresultNo);
mysql_format(g_SQLquerysizeof(query), "SELECT * FROM `logs` AS l JOIN `logtypes` AS lt ON l.LogType = lt.LogTypeId %e"conditions);
mysql_tquery(g_SQLquery"LogSearchResults""d"playerid); 


The function LogSearchResults doesn't even get triggered. I printed out the query and got something that returns results when I run it manually..

Any ideas? :(

This is the print out i got:

PHP Code:
SELECT FROM `logs` AS l JOIN `logtypes` AS lt ON l.LogType lt.LogTypeId WHERE `Account` = 'dock' AND lt.LogType 'localchat' ORDER BY Timestamp desc LIMIT 50 


  Damage Animations
Posted by: MmDCatty - 2023-08-14, 01:46 AM - Forum: Pawn Scripting - Replies (1)

Hello everyone, how can I prevent the player to play game-default animations when they get shot by a weapon?


  [System] Fire Hose System
Posted by: caominhthangtran - 2023-08-13, 07:51 PM - Forum: Videos and Screenshots - No Replies

[Video: https://www.youtube.com/watch?v=P6QvFub0Eq8]


  Sun City Roleplay - Drift, Mystery, and Intrigue in a Japanese Adventure!
Posted by: yassinwasaround - 2023-08-07, 04:07 PM - Forum: Advertisements - No Replies

Ignite your passion for drifting and showcase your skills as you tear through scenic mountain passes and weave through the bustling city streets. Sun City Roleplay offers an English text-based heavy roleplay server

Immerse yourself in a vast and meticulously crafted world[/color][/b] where the art of drifting seamlessly intertwines with the shadows cast by the Yakuza organizations. Dive deep into the intricate plots, political machinations, and clandestine dealings of powerful Yakuza factions. Forge alliances, navigate betrayals, and rise through the ranks to claim your place as a formidable force in the criminal underworld.


If you seek the pursuit of justice and order, join the prestigious ranks of Law Enforcement (LOA) factions. Engage in meticulous investigations, daring operations, and intense standoffs with the Yakuza. The fate of Sun City rests in your hands as you uphold the law and protect the innocent from the ever-looming threat of organized crime.


📜 At Sun City Roleplay, we prioritize heavy-roleplay and storytelling. Our community of passionate roleplayers creates dynamic and intricate narratives that will captivate your imagination and keep you on the edge of your seat.

Join our newly established server and become part of a mature and dedicated community of heavy-roleplayers[/color][/b]. Whether you're a seasoned roleplaying veteran or a newcomer seeking to dive deep into immersive storytelling, we welcome you with open arms.

Enough reading, it's time to step into the world of Sun City and shape your destiny!

HostName: [EN][03DL] Sun City Roleplay
Address: TBA.
⛓ Join our Discord: https://discord.gg/CMjmqyKKkk

Need any help? Contact howabouthatt in Discord.



Need more? Here are some screenshots!


[Image: sa-mp-061.png?width=760&height=427]
[Image: sa-mp-009.png?width=760&height=427]
[Image: sa-mp-010.png?width=760&height=427]
[Image: sa-mp-018.png?width=760&height=427]
[Image: sa-mp-015.png?width=760&height=427]
[Image: sa-mp-014.png?width=760&height=427]
[Image: sa-mp-026.png?width=760&height=427]
more screenshots can be found in this thread (which exists in the open.mp/samp discord server).


  Слоты
Posted by: MarkDown - 2023-08-03, 04:04 PM - Forum: Russian/??????? - No Replies

Всем привет!


  SAMP | Comedy Club Interior
Posted by: mirsat24 - 2023-07-30, 07:41 PM - Forum: Videos and Screenshots - No Replies

Comedy Club
You see the Comedy Club map with its unique decoration. The map provides a different role opportunity for those who do business roles. It is designed for players to have a pleasant time.

You can DM me from Discord : mirsat24

Whats in the Comedy Club

- There is a "Lobby" and "Reception" at the entrance of the Comedy Club.
- When you leave the lobby, a large hall welcomes you. To the right of the hall there is a Bar that people can use.
- For those who work at the bar, it is done through the door in the lobby at the entrance.
- There is a dressing room for extra employees.
- There are tables and chairs in the hall for you to watch the show overlooking the stage.
- The doors on the side are used to enter the stage.
- On the way to the stage there is a small preparation room for the preparation of comedians.

Video of the Map

[Video: https://youtu.be/wtgyg6zhX7c]


  Server List Database of open.mp
Posted by: mirareebahmad10 - 2023-07-27, 12:34 PM - Forum: Questions and Suggestions - No Replies

If there would a filter that would let us to search a server by their languages like English servers etc I think that would be much better, wouldn't it?


  I need help with Assembly (#emit or __emit)
Posted by: Otakeiro - 2023-07-26, 09:29 PM - Forum: Pawn Scripting - Replies (1)

I want to make a simple hook through the #emit

PHP Code:
native CallLocalFunction(const funcname[], const format[], {Float,_}:...);
native printf(const output[], {Float,_}:...);

stock __CallLocalFunction(const funcname[], const format[], {Float,_}:...) {
    static retval;
    if(funcidx(funcname) == -1) {
        retval 0;
        printf("Function not defined: %s.\n"funcname);
    } else {
        if(numargs() == 2) {
            retval CallLocalFunction(funcnameformat);
        } else {
            // "emit" code to call function with args and return value to "retval"
        }
    }
    return retval;

I've tried using codes like SendClientMessageEx or EasyDialog, but I need it to return the value
If possible comment the code so I can study it


  Error 010: invalid funciton or declaration
Posted by: DDRfx10 - 2023-07-23, 10:43 AM - Forum: General Discussions - Replies (1)

Hello, I've been trying to make a gamemode for SA-MP, and in a command for giving yourself a weapon "/weapon" I get the 010 error. No matter what I do, nothing fixes it.
Log:
D:\SAMPSERVER\gamemodes\COI.pwn(245) : error 055: start of function body without function header
D:\SAMPSERVER\gamemodes\COI.pwn(248) : error 010: invalid function or declaration
D:\SAMPSERVER\gamemodes\COI.pwn(249) : error 010: invalid function or declaration
D:\SAMPSERVER\gamemodes\COI.pwn(250) : error 010: invalid function or declaration
D:\SAMPSERVER\gamemodes\COI.pwn(252) : warning 203: symbol is never used: "ammo"
D:\SAMPSERVER\gamemodes\COI.pwn(252) : warning 203: symbol is never used: "weaponid"
Pawn compiler 3.10.4 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Part of the code which Pawno is referring to:
244: CMD:weapon(playerid, params[]);
245: {
246: new weaponid, ammo;
247:
248: if(sscanf(params, "ii", weaponid, ammo))
249:     return ClientMSG(playerid, COL_SUNYELLOW, "Usage: /weapon [ID] [AMMO]
250: return 1;
251: }


I was making the command, so that's why it looks incomplete.
Can someone help me with this?


  YSI - Core include error
Posted by: deks1337 - 2023-07-19, 03:32 PM - Forum: Support - No Replies

Hello brothers. I'm having this problem in my game mode, can you help?

Code:
Pawn compiler 3.2.3664                  Copyright (c) 1997-2006, ITB CompuPhase

..\pawno\include\core.inc(12) : error 010: invalid function or declaration
..\pawno\include\YSI\YSI\..\YSI_Core\..\YSI_Core\..\YSI_Internal\y_funcinc.inc(82) : error 017: undefined symbol "heapspace"

2 Errors.