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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,772
» Latest member: hiago.sucesso.hs
» Forum threads: 2,369
» Forum posts: 12,326

Full Statistics

Online Users
There are currently 287 online users.
» 0 Member(s) | 284 Guest(s)
Google, Bing, Applebot

Latest Threads
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: hiago.sucesso.hs
4 hours ago
» Replies: 1
» Views: 147
Is there a WebSocket plug...
Forum: General Discussions
Last Post: hiago.sucesso.hs
4 hours ago
» Replies: 0
» Views: 5
What would you start?
Forum: Life
Last Post: HELLHOUND
2025-12-14, 10:32 PM
» Replies: 5
» Views: 10,299
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-14, 02:06 PM
» Replies: 3
» Views: 410
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-13, 07:16 PM
» Replies: 4
» Views: 760
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
2025-12-12, 04:57 PM
» Replies: 0
» Views: 66
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-12-12, 03:29 PM
» Replies: 0
» Views: 49
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 54
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 197
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 259

 
  [HELP] Help with a dialog
Posted by: Mathex - 2021-02-02, 01:55 AM - Forum: Pawn Scripting - Replies (1)

I tell you, I am creating a function that changes the colors in the band or faction that you are leading, but when I select the color the color is not applied to the band

*this is in a,?"ShowDialog (playerid, dialogid)"*



Code:
case CREW_MODIFY_COLOR:return ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Selecciona el nuevo color", DIALOG_CREATE_CREW_COLOR_String, "Cambiar", "Volver");


*and this is in,?"public OnDialogResponse (playerid, dialogid, response, listitem, const inputtext [])"*

Code:
case CREW_MODIFY_COLOR:[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]{[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? if(!response) return ShowDialog(playerid, CONFIG_BANDA);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? if(PLAYER_INFO[playerid][pFaccion] == 0) return SendClientMessage(playerid, -1,"No perteneces a una banda.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? if(PLAYER_INFO[playerid][pFaccion] == 1) return SendClientMessage(playerid, -1,"No puedes modificar el color de esta banda.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if(PLAYER_INFO[playerid][pRango] != 8) return SendClientMessage(playerid, -1, "No tienes permiso.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if(BandasInfo[ PLAYER_INFO[playerid][pFaccion] ][B_Atacando]) return SendClientMessage(playerid, -1, "No se puede cambiar el color cuando la banda est? en combate.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? ? ? ? ? for(new id = 0; id < MAX_BANDAS; id)[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]{[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if(BandasInfo[id][BColor] == RandomColors[listitem])[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]{[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? SendClientMessage(playerid, -1, "Color en uso, selecciona otro color.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]return ShowDialog(playerid, CREW_MODIFY_COLOR);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]}[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]}[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]? ? ? ? ? ? BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor] = RandomColors[listitem];[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]new r, g, b, a, new_territory_color;[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]HexToRGBA(BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor], r, g, b, a);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]new_territory_color = RGBAToHex(r, g, b, 135);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]for(new i = 0; i != MAX_T; i )[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]{[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if(!TERRITORIOS_INFO[i][Territorio_Valido]) continue;[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if(!TERRITORIOS_INFO[i][Territorio_Usado]) continue;[/font][/size][/color][/font][/size][/color]



[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]if((TERRITORIOS_INFO[i][Territorio_Banda] == BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]) || (TERRITORIOS_INFO[i][Territorio_BandaID] == BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]))[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]{[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]TERRITORIOS_INFO[i][Territorio_Color] = new_territory_color;[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]UpdateGangZoneColor(i);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]}[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]}[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]SendClientMessage(playerid,-1,"El color de tu banda fue cambiado correctamente.");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]new DB_Query[256];[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]mysql_format(handle_db, DB_Query,sizeof(DB_Query), "UPDATE `facciones` SET `Color` = '%d' WHERE `id`='%d';", BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor], BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]mysql_query(handle_db, DB_Query, false);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]mysql_format(handle_db, DB_Query, sizeof(DB_Query), "UPDATE `territorios` SET `Color`='%d' WHERE `Banda`='%d'", new_territory_color, PLAYER_INFO[playerid][pFaccion]);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]mysql_query(handle_db, DB_Query, false);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]print("actualiza3");[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]ShowDialog(playerid, CONFIG_BANDA);[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]return 1;[/font][/size][/color][/font][/size][/color]

[color=#202124][size=x-large][font="Google Sans", arial, sans-serif][color=#202124][size=x-large][font="Google Sans", arial, sans-serif]}







And inside the game this happens:

[Image: Ks8Oly0.png]





I select the color and nothing happens



[Image: hYXTrHy.png]



And the console does not show errors





[Image: Eb9JdNV.png]


  [HELP] Business FileScript Error
Posted by: MiniKLK - 2021-02-01, 11:06 PM - Forum: Pawn Scripting - Replies (2)

I'm trying to add this filescript to my gm with mysql, but always i get errors like this, i'm always updating all my libraries and i uptadet all as i can but i'm not stopping getting errors... Please if someone can help me with this...I'll really appreciate! Thanks you so much, and have a nice day.



This is my discord if you can or want to help me:???#3040

If you can't add me, i'll try to add you, just let me know your Discord tag.

Bless.



[Image: HfGJvev.png]


  Login & Register system
Posted by: Flint - 2021-02-01, 03:47 PM - Forum: Videos and Screenshots - Replies (2)

like & subscribe <3 thx



https://youtu.be/0RpTX7zDQSk


  Inventory System
Posted by: RhaegarX - 2021-02-01, 02:46 AM - Forum: Pawn Scripting - Replies (2)

I am developing a Gamemode entirely in MySQL and I would like to create an item inventory system that stores food, accessories, among others.? However with the closed samp forum it is kind of hard to find content.? so I would like to know if anyone has a system like this so that I can study and understand how the logic behind it works, or if anyone could give an idea of what that logic would be like.


  SUMMING OBJECTS !!
Posted by: Gustavo P - 2021-01-31, 11:40 PM - Forum: Pawn Scripting - No Replies

some objects disappear from nowhere, how can i solve?


  Problems with y_hooks
Posted by: Frajola - 2021-01-31, 10:17 PM - Forum: Support - Replies (3)

y_hooks featuring warnings



PHP Code:
warning 200symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters

warning 200
symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerCommandPerformed@00" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerCommandPerformed@00" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerEnterRaceCheckpoint" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerEnterRaceCheckpoint" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters

warning 200
symbol "@yH_OnPlayerClickPlayerTextDraw" is truncated to 31 characters 





How to handle very large public names ?


  [Pedido] Como detectar s0beit.
Posted by: FelipeSilva - 2021-01-31, 09:43 PM - Forum: Portuguese/Portugu?s - Replies (8)

O t?tulo ? auto explicativo, como fa?o para?detectar se um jogador est? utilizando?s0beit?


  bcrypt
Posted by: Behemoth - 2021-01-30, 05:43 PM - Forum: Pawn Scripting - Replies (10)

Hey



I'm moving from whirlpool to bcrypt and really can't understand it. can someone give me an example of how you'd verify a password is the same as what is held in the sql db? i can register fine and it saves the password correctly, i'm just struggling to actually check it.



thanks


  [HELP] Animations
Posted by: fivezerofour - 2021-01-30, 05:40 PM - Forum: Pawn Scripting - Replies (1)

Hey, so I wanted to ask maybe someone knows how to allow the player to move while playing animation, just like LSRP? I can't find any solution to that. Thanks!


  kamikaze Artwork [GTA Style]
Posted by: Kamikaze - 2021-01-30, 01:41 PM - Forum: Art - Replies (1)

[Image: p5CvdO9.png]

[Image: jThksLE.png]

?

Taking REQS (FIVERR)

?

Copyright ? 2021 by kamikaze#8688?

All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.