| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 6,633
» Latest member: navarro
» Forum threads: 2,471
» Forum posts: 12,505
Full Statistics
|
| Online Users |
There are currently 319 online users. » 1 Member(s) | 315 Guest(s) Bing, Google, Applebot
|
|
|
I need help. Got back into PAWN scripting after years of inactivity |
|
Posted by: LincolnClay - 2023-05-19, 01:34 PM - Forum: Pawn Scripting
- No Replies
|
 |
Hey everybody, i've been a PAWN scripter in the ancient times when YSI 3.0 and foreach were the top notch stuff. Decided to get back and start working on my old gamemode again. The gamemode is ANCIENT and of course i'm getting a bunch of errors when using the community pawn compiler and when i try to update to YSI 5.x. I know about foreach being discontinued and i replaced all foreach(Player, i); in my script to foreach( new i = player); and i've changed OnPlayerCommandPerformed, but i'm getting Y_INI errors. Have any Y_INI saving and loading functions changed that i'm not aware of ? I'm sorry for asking these dumb questions, i've been out of the loop for years.
Code: [/b]
[b]D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "X" shadows a variable at a preceding level[/b]
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(165) : error 035: argument type mismatch (argument 4)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(174) : error 035: argument type mismatch (argument 2)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(183) : error 035: argument type mismatch (argument 3)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(192) : error 035: argument type mismatch (argument 2)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(201) : error 035: argument type mismatch (argument 3)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(264) : error 035: argument type mismatch (argument 1)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(361) : error 035: argument type mismatch (argument 1)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_warning.inc(7) : warning 237: user warning: y_malloc heap allocation is unstable. Use `YSI_NO_HEAP_MALLOC` to disable it, or `YSI_YES_HEAP_MALLOC` to disable this warning: git.io/YSI_HEAP_MALLOC
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Visual\y_commands\y_commands_impl.inc(220) : error 025: function heading differs from prototype
D:\mod\gamemodes\moddd.pwn(98) : warning 201: redefinition of constant/macro (symbol "SCM")
D:\[b]mod[/b]\gamemodes\moddd.pwn(1504) : error 021: symbol already defined: "DONT_USE_SCM"
D:\[b]mod[/b]\gamemodes\moddd.pwn(25291) : error 025: function heading differs from prototype
[b]
|
|
|
|
Need help fixing a minigame (payd). |
|
Posted by: Tixxt - 2023-05-19, 09:16 AM - Forum: Support
- No Replies
|
 |
Hi guys!
My first post but its a good one.. lol.
Im working on my freeroam server (its online/hosted). But i have a problem with the Fallout minigame. Most of the time not all the tiles spawn. And players fall to the ground right after the minigame started. Sometimes all the tiles do spawn. Does someone know how to fix this problem?
The one that can fix this will be rewarded via paypall..
Contact me via this thread or discord.
Greetz Tixxt.
|
|
|
|
| Check if two weapons are in same slot |
|
Posted by: JasonDeRue - 2023-05-05, 08:16 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hello, I'm making a weapon/save load system to MySQL and it seems working but I have a problem.
I need something to check if two weapons are in the same slot because now the save system inserts 2 rows in the table.
Example:
I buy Spas12, weapon gets inserted in the table, but if I buy sawn off, the weapon gets inserted in the table so I have 2 weapons of the same slot saved.
I need to avoid this.
This is the save code:
Code: public GivePlayerWeaponEx(playerid, weaponid, ammo)
{
new wepQuery[300];
if(IsValidWeaponID(weaponid))
{
mysql_format(g_SQL, wepQuery, sizeof(wepQuery), "INSERT INTO `weapons` (`userid`, `weaponid`, `ammo`) VALUES (%d, %d, %d) ON DUPLICATE KEY UPDATE ammo = %d",
ReturnAccDbID(playerid), weaponid, ammo, GetPlayerAmmo(playerid) + ammo);
mysql_pquery(g_SQL, wepQuery);
}
return GivePlayerWeapon(playerid, weaponid, ammo);
}
|
|
|
|
| Run time error 4: "Array index out of bounds" |
|
Posted by: mihaiandrey2008 - 2023-04-12, 03:37 AM - Forum: Support
- No Replies
|
 |
hello, I've been a developer on a new gamemode of mine for a few days and I'm getting this error
[debug] Run time error 4: "Array index out of bounds"
[debug] AMX backtrace:
[debug] #0 00346a94 in OnDialogResponse (playerid=0, dialogid=177, response=1, listitem=0, inputtext[]=@0167cc44 "Owned vehicles", ... <1073741818 arguments>) at D:\SAMP\endless\gamemodes\end.pwn:35756
[debug] #1 0000d038 in public OnDialogResponse (... <5 arguments>) at D:\SAMP\endless\pawno\include\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
https://pastebin.com/XiPnuvxx - line 29
|
|
|
|
| B-Discord ( ALL VERSIONS ) |
|
Posted by: iamboss486 - 2023-04-09, 08:08 PM - Forum: Filterscripts
- Replies (2)
|
 |
B-Discord
ABOUT
B-Discord is a filter script that seamlessly connects games to Discord and serves as a logging tool. With its advanced admin commands, B-Discord enables server owners to control the system with ease. This versatile filterscript is an invaluable addition to your samp gaming community, providing real-time updates and alerts to players and administrators alike. Whether you're managing a large serveror simply looking to enhance your gaming experience, B-Discord is the ideal solution for staying connected and in control.
Version ( 1.0 )
1 - In-game chat feature. 2 - Discord commands like - /players , /serverinfo , /ip , /commands. 3 - Command log system (for this you have to shift the code to your main script). 4 - Server start message. 5 - The player connect/disconnect messages. 6 - Fixed discord command include.
Commands
announce
spec
aclear
aslap
ban
kick
unfreeze
freeze
acmds
-New admin channel
-Added pm commands now you can view in-game private messages in your admin discord channel
-Admin command can only be used in the admin channel
-Now you can set your discord bot status (Online, idle, do not disturb)
-Now you can set your discord bot custom status from the line - 84
-All messages converted into bold.
Download - > Github
Version ( 1.1 )
(/)Several Changes in B-Discord system
(/) Command "acmds" is modified
(/) All the admin commands are modified
(/) !players command is also modified
(+) Security System
(+) A new security channel introduced
(+) If any players try to login through rcon then the message containing the players IP, name, id & password which he used will be sent
in the discord security channel
(+) Players private information like their IP, His ping, His health, His name, His id will be sent to the security channel when connected
and it will be re-sended when the player disconnects.
(+) New commands
(+) !ban command --> this command will rcon ban any player
(+) !credits command
(+) All commands re-scripted
(-) Removed GeoIP include as it was not working + many players wore having problems getting it
Download - > Github
Version ( 1.2 )
In this release, we mostly focused on bug fixing as there were many.
Prefixes
(/) = Changes
(*) = New added
(+) = added
(-) = removed
(/) Now you have to put your channel ids after macros.
(+) New Admin Commands
-!time --> Briefs you with the ingame time
-!giveallcash --> This command can be used to give all the players a certain amount of money
-!giveallscore --> This command can be used to give all the players a cetain amount of score
-!healall --> Gives all the players 100%health
-!armourall --> Gives all the players 100%armour
-!explode --> This command will create a explosion near the targeted player
(-) Security messages which indicate players ping , IP , client versions have been removed as it gives the wrong information while disconnection.
() Kick command fixed
() Announce command fixed
(+) Added emojis(just for fun)
(-) Pm command removed
(/) spec command changed to getstatus
(/) CREDITS command MODIFIED
(/) RESTART command CMD
(*) aslap command fixed
(/) say command
(/) Player command
(+) Bot Activity system is now modified
-Bot activity will show how many players are online on your server
-It depends upon cases like if 0 players are online then the statement will be different and so on.
-Bot Presence Status changes according to player count
- if player count is 0 bot presence will be online
- if the player count is 1 bot presence will be idle
- if player count is more than 1 bot presence will do not disturb
- You can change this. Here are all available statuses you can use
-ONLINE
-IDLE
-DO_NOT_DISTURB
-INVISIBLE
-OFFLINE
Download - > Github
Version ( 1.3 ) *LATEST
We are excited to announce some recent updates and improvements to our script!
We have added a new feature that displays info , cmds , acmds commands & security message in Discord embeds, making it easier and more intuitive for users to access important information.
For improved logging, we have replaced the "bosslogs" function with two new functions, "DiscordSendLog" and "DiscordSendLogTarget".
We have also optimized the script for improved performance, ensuring that it runs smoothly and efficiently.
We believe that these updates will greatly enhance the user experience and provide a more secure and reliable system.
Thank you for your continued support and feedback, which helps us to improve our script and deliver the best possible experience for our users.
Special Thanks to
Protector
Download - > Github (RECOMMENDED)
|
|
|
|
| Advanced Gangzones (a_zone) updated. |
|
Posted by: pushline - 2023-03-26, 01:50 AM - Forum: Libraries
- Replies (1)
|
 |
I had errors in my DM GM with getting buggy with 3 numbers. So I took the main project (with the last update in 2016) and created a function that creates the 3rd number.
The function that does this by default the creator did it in an ugly/difficult way, so I didn't bother to fix it, because it uses mathematics to create the numbers.
If you know how to fix or even create a more optimized function, fork the project and create a pull request.
Github link:
https://github.com/pushline/Advanced-Gang-Zones
|
|
|
|
|