https://open.mp logo
Join Discord
Powered by
# pawn-help
  • g

    gorgeous-baker-92777

    05/28/2023, 3:19 PM
    Peds don't work like that in samp
  • q

    quick-eve-16113

    05/28/2023, 3:32 PM
    tf this resolution
  • h

    helpful-keyboard-89285

    05/28/2023, 3:33 PM
    300x300
  • s

    sparse-spoon-29415

    05/28/2023, 4:07 PM
    This file is part of this repository (https://github.com/Naseband/SAMP-Peds), if you want to understand why it is needed, you should study this project.
  • a

    adventurous-continent-76849

    05/28/2023, 4:08 PM
    I went through the project still yet am lost honestly I really need this to work sir Please can u help
  • s

    sparse-spoon-29415

    05/28/2023, 4:12 PM
    I can't give you a proper answer right away, because this is the first time I've visited this repository
  • c

    clever-air-16091

    05/28/2023, 4:17 PM
  • m

    mammoth-salesclerk-51500

    05/28/2023, 5:00 PM
    rp by ysell?
  • w

    worried-lighter-48857

    05/28/2023, 7:31 PM
    why my textdraw player is not clickable

    https://cdn.discordapp.com/attachments/231799180127895553/1112463201037201531/Captura_de_tela_2023-05-28_160243.png▾

    https://cdn.discordapp.com/attachments/231799180127895553/1112463201402114058/Captura_de_tela_2023-05-28_160340.png▾

    https://cdn.discordapp.com/attachments/231799180127895553/1112463201796370513/Captura_de_tela_2023-05-28_160414.png▾

  • w

    worried-lighter-48857

    05/28/2023, 7:32 PM
    it even becomes clickable, but the function that defines for when the player clicks, will be executed, I've tried everything, but nothing works
  • w

    worried-lighter-48857

    05/28/2023, 7:34 PM
    please, helppp 😫
  • b

    breezy-solstice-69394

    05/28/2023, 7:38 PM
    @helpful-keyboard-89285 @gorgeous-tomato-73021 imagine
  • w

    worried-lighter-48857

    05/28/2023, 7:39 PM
    oi linda
  • p

    polite-night-45018

    05/28/2023, 7:44 PM
    Why do I get this error when compiling, also how could I do so that after the LS a random number appears for the number plate?

    https://cdn.discordapp.com/attachments/231799180127895553/1112466473588375642/image.png▾

  • n

    nice-insurance-41934

    05/28/2023, 8:53 PM
    The argument for SetVehicleNumberPlate is a string. Putting "LS" will fix it. Use random() to generate random plates and format them into a string to use with the native.
  • s

    strong-midnight-33261

    05/28/2023, 10:23 PM
    how can i get exact error line when i get AMX backtrace array out of bounds
  • s

    strong-midnight-33261

    05/28/2023, 10:23 PM
    onplayerentercp
  • p

    polite-night-45018

    05/29/2023, 1:03 AM
    use random then put LS-%d?
  • b

    boundless-traffic-18745

    05/29/2023, 1:46 AM
    compile the script with -d3
  • b

    boundless-traffic-18745

    05/29/2023, 1:46 AM
    so it'll include debug info in the amx
  • b

    boundless-traffic-18745

    05/29/2023, 1:47 AM
    you can create a file where the compiler is and name it pawn.cfg and just put -d3 in the file
  • b

    breezy-solstice-69394

    05/29/2023, 2:05 AM
    U guys know if is possible to use mysql plugin without a specific database?
  • b

    boundless-traffic-18745

    05/29/2023, 2:53 AM
    @breezy-solstice-69394 probably needs some adjustments
  • b

    boundless-traffic-18745

    05/29/2023, 2:54 AM
    just looking at how it connects now, it checks for a database
    Copy code
    c++
    if (db == nullptr || strlen(db) == 0)
    {
        error.set(CHandle::Error::EMPTY_DATABASE, "no database specified");
        return nullptr;
    }
  • b

    breezy-solstice-69394

    05/29/2023, 2:54 AM
    lol i meant in pawn side
  • b

    boundless-traffic-18745

    05/29/2023, 2:54 AM
    thats how the mysql plugin connects to it
  • b

    boundless-traffic-18745

    05/29/2023, 2:54 AM
    the plugin itself has a check for a blank database
  • s

    swift-knife-95887

    05/29/2023, 3:54 AM
    Is it possible to swap the objectIDs?
  • s

    swift-knife-95887

    05/29/2023, 3:55 AM
    Like let's say, I would like to assign Object 5 to Object 1 and Object 1 becomes Object 5.
  • Help with the gangs
    w

    wonderful-nail-43346

    02/15/2024, 12:25 PM
    code: new Cache:result = mysql_query(dbHandle, "SELECT * FROM gangs"); if(cache_num_rows() > 0) { for(new i = 0; i < cache_num_rows(); i++) { printf("%d", i); cache_get_value_name_int(i, "id", GangsNew[i][gangid]); cache_get_value_name(i, "tag", GangsNew[i][Tag], 8); cache_get_value_name_int(i, "dmg", GangsNew[i][Exp]); cache_get_value_name_int(i, "leaderid", GangsNew[i][LeaderId]); cache_get_value_name_int(i, "Color", GangsNew[i][Color]); printf("Создана %s[%d] с %d опыта, цветом %d и лидером с ID %d, в общем %d банд", GangsNew[i][Tag], GangsNew[i][gangid], GangsNew[i][Exp], GangsNew[i][Color], GangsNew[i][LeaderId], gangs + 1); gangs++; } } cache_delete(result); cmd: CMD:zxc(playerid, params[]){ static gangname[15]; format(gangname, 15, "%s", GangsNew[eUser[playerid][GangId]][Tag]); SendClientMessage(playerid, -1, gangname); format(gangname, 15, "%d", eUser[playerid][GangId]); SendClientMessage(playerid, -1, gangname); return 1; } the first line outputs an empty one, and the second one outputs 10 as in the database enum e_Gang { gangid, Tag[8], Exp, LeaderId, ArenaExp, Color } new GangsNew[MAX_GANGS][e_Gang];