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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,045
» Latest member: oskipodgrudny
» Forum threads: 2,351
» Forum posts: 12,239

Full Statistics

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

Latest Threads
Problem about pawnbot
Forum: Pawn Scripting
Last Post: balkanspeed18
11 hours ago
» Replies: 0
» Views: 15
Error
Forum: Pawn Scripting
Last Post: -N0FeaR-
2025-04-25, 12:05 PM
» Replies: 0
» Views: 20
GTA Multigames [ MultiMod...
Forum: Advertisements
Last Post: Undead
2025-04-25, 07:37 AM
» Replies: 0
» Views: 34
Atlanta DeathMatch
Forum: Advertisements
Last Post: NixaSha
2025-04-25, 01:19 AM
» Replies: 0
» Views: 27
will open.mp supports hig...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-23, 07:10 PM
» Replies: 2
» Views: 415
black screen
Forum: Support
Last Post: geppetog
2025-04-23, 05:34 PM
» Replies: 0
» Views: 33
Discord server - Ban Appe...
Forum: Chat
Last Post: joshcoconutard
2025-04-22, 06:42 PM
» Replies: 0
» Views: 52
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-22, 02:22 PM
» Replies: 4
» Views: 182
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 55
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 145

 
  ProgressBar2 on high resolution - [FIXED]
Posted by: JR_Junior - 2020-10-09, 03:41 AM - Forum: Pawn Scripting - Replies (1)

Hi.



I'm using the include https://github.com/Southclaws/progress2 and a small bug is happening.



I could create an issue post in the repository but it was archived by the owner.



On my old monitor the resolution was 1280x720 there was no problem.



My current monitor is 2560x1080 and the following bug is happening when the bar value is less than 5.5:

[Image: Screenshot-229.png]



Here is the function to return the current progress value:

PHP Code:
stock Float:_bar_percent(Float:xFloat:widthorheightFloat:maxFloat:valuedirection)

{

new 
Float:result;

switch(
direction)

{

case 
BAR_DIRECTION_RIGHT:

{

result = ((3.0)  (((((2.0)  widthorheight) - x) / max) * value));

}

case 
BAR_DIRECTION_LEFT:?

{

result = ((1.0) - (((((x  2.0) - widthorheight) - x) / max) * -value)) - 4.0;

}

case 
BAR_DIRECTION_UP:?

{

result = -((((((widthorheight 10.0) - 0.45) * 1.02) / max) * value)  0.55);

}

case 
BAR_DIRECTION_DOWN:?

{

result = ((((((widthorheight 10.0) - 0.45) * 1.02) / max) * value) - 0.55);

}

}

return 
result;





If I change the code
Code:
result = ((x - 3.0)  (((((x - 2.0)  widthorheight) - x) / max) * value));
to
Code:
result = (x  ((((x  widthorheight) - x) / max) * value));



Fix the problem but creates another:

[Image: Screenshot-228.png]







FIXED THE PROBLEM

I made several corrections in the include and managed to solve my problem.

[Image: Screenshot-236.png]



If anyone is interested I'm sharing:?https://github.com/Walter-Correa/progress2


  Problem with Foreach & INI
Posted by: MrAsR - 2020-10-09, 03:00 AM - Forum: Support - Replies (1)

How to fix this is ?



Code:
F:\TLOD\pawno\include\foreach.inc(196) : error 017: undefined symbol "_FOREACH_CUR_VERSION"

F:\TLOD\gamemodes\project.pwn(855) : error 017: undefined symbol "INI_ParseFile"

F:\TLOD\gamemodes\project.pwn(855) : warning 215: expression has no effect

F:\TLOD\gamemodes\project.pwn(855) : error 029: invalid expression, assumed zero

F:\TLOD\gamemodes\project.pwn(855) : error 017: undefined symbol "extra"

F:\TLOD\gamemodes\project.pwn(855) : fatal error 107: too many error messages on one line



Line 855 - 864

Code:
? ? ? ? INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

? ? ? ? if(PlayerInfo[playerid][pBanned] == 1) return ShowBan(playerid);

? ? ? ? ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Wellcome back "COL_RED"The Land Of Death\n"COL_WHITE"Please write password to login","Login","Quit");

? ? }

? ? else

? ? {

? ? ? ? ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"Wellcome to "COL_RED"The Land of Death\n"COL_WHITE"Please register before player.","Register","Quit");

? ? }

return 1;

}


  Problem with FCNPC
Posted by: MrAsR - 2020-10-08, 03:17 PM - Forum: Support - No Replies

Compiler Output :

Code:
F:\server\pawno\include\FCNPC.inc(403) : error 001: expected token: "-identifier-", but found "("

F:\server\pawno\include\FCNPC.inc(444) : error 017: undefined symbol "Iter_Clear"

F:\server\pawno\include\FCNPC.inc(444) : warning 215: expression has no effect

F:\server\pawno\include\FCNPC.inc(444) : error 001: expected token: ";", but found ")"

F:\server\pawno\include\FCNPC.inc(444) : error 029: invalid expression, assumed zero

F:\server\pawno\include\FCNPC.inc(444) : fatal error 107: too many error messages on one line


  [FCNPC] Problem
Posted by: MrAsR - 2020-10-08, 03:03 PM - Forum: Pawn Scripting - Replies (2)

How to fix this error ?



Code:
F:\TLOD\pawno\include\FCNPC.inc(403) : error 001: expected token: "-identifier-", but found "("

F:\TLOD\pawno\include\FCNPC.inc(444) : error 017: undefined symbol "Iter_Clear"

F:\TLOD\pawno\include\FCNPC.inc(444) : warning 215: expression has no effect

F:\TLOD\pawno\include\FCNPC.inc(444) : error 001: expected token: ";", but found ")"

F:\TLOD\pawno\include\FCNPC.inc(444) : error 029: invalid expression, assumed zero

F:\TLOD\pawno\include\FCNPC.inc(444) : fatal error 107: too many error messages on one line


  player object attachment
Posted by: hellmatic - 2020-10-08, 12:08 PM - Forum: General Discussions - No Replies

hello all fello samp coders and players, i need help i am trying to find or have help code a player object attachment system that i can add to my newly freeroam game mode i'm doing but i can't use mselection, any help would be gratefully helpful, even dini but i want one that saves and loads when a player joins if possible
my system i'm using ysi i'd prefer that it works well but any will do but not sql or mysql

also slots preferred aswell for multiple objects thanks

hellmatic


  fatal error 111: user error: Could not find y_iterate
Posted by: Rayka - 2020-10-07, 03:47 PM - Forum: Support - Replies (3)

How about, recently I found a base server that I am starting to use but when trying to compile it it throws the following error that the include does not find it, I already tried to update the includes until trying old versions but it is still the same error. Hope someone can help me.

Code:
C:\Users\PC\Desktop\Gamemode\pawno\include\y_iterate.inc(108) : fatal error 111: user error: Could not find y_iterate


  Plugins wont load
Posted by: Limitless - 2020-10-07, 11:52 AM - Forum: Support - Replies (4)

I have this WINDOWS SERVER 2016 and When I try to start the samp-server.exe, plugins are failed to load.. I tried it on my localhost it was working fine...



Is it because my server is 2016 and my plugins are mostly from 2018?


  The situation.
Posted by: Eze - 2020-10-07, 03:45 AM - Forum: General Discussions - Replies (5)

Hey, I?ve been away from SAMP for a long time a new, couple years at least but I still login and check the forums from time to time because it just interests me.



To be honest when I was playing it I never really knew who Y_Less really was or what he was doing because I was there for the ride and realistically that?s why majority of us were there, to play it enjoy it and just understand that there are staff there working.

This is just my point. I even think when I played SAMP, I could remember thinking Y less was some random dick that was coding for the owner.

I think everyone needs to be happy that someone is still willing to continue the project and not just throw it in the bin and let it to die, that?s what dedication is.



I honestly have full support with this, I hope it succeeds. SAMP isn?t even dying as quick as everyone thinks, it?s still strong. I think it needs more advertising done out of this platform, like sending YouTubers t-shirts to promote it, paying people to promote it because every person I?ve met has never heard of SAMP and they are playing the computer longer then me.



Everyone needs to stick together, this is the way to go. Kalcor gave up and didn?t trust his mate to have too much access to make it better for everyone, so what did he decide to do? Throw everything in the bin. I?m even a little upset that my account from 2013 is gone I believe, something like that pretty much early days when they had a few servers on not even a 100.



I wish this well, everyone needs to stick together. This?community will last because the team itself.?You can?t say bad about it so imagine you were sitting in smelly cowshit before but now you are sitting in hope and warm sexy blanket filled with toppings of the sex you are attracted to haha.



This is my opinion guys, if I?m wrong or something please tell me. I?d like to know, I never spoke to Y_less nor Kalcor myself, but I?d like to know and because I?m a lot older then I was playing this as a kid, believe it or not, I have 1 boy?and I?m married and I own a house, yet I still think SAMP made me grow into who I was because some of the decisions I?ve done that reminds me of SAMP and the hype and the lessons that all these people have taught me playing it.



That?s all I have to say, I?m looking to see what you have to say about this.


  Testear comandos sin entrar en SAMP
Posted by: Daniel_Vilchez - 2020-10-06, 07:43 PM - Forum: Pawn Scripting - Replies (3)

Hay alguna forma de testear comandos sin necesidad de estar entrando y saliendo a cada rato al servidor? No existe algo como una consola que simule el chat del servidor para poder probar comandos?


  ask dm
Posted by: nbx2000 - 2020-10-05, 05:38 AM - Forum: Pawn Scripting - Replies (4)

How can I do a simple kill spree? streak some example