Raised This Month: $12 Target: $400
 3% 

Web Shortcuts


Post New Thread Reply   
 
Thread Tools Display Modes
deathkilla
Senior Member
Join Date: Mar 2011
Old 08-05-2012 , 11:50   Re: Web Shortcuts
Reply With Quote #281

Hey, i keep getting this error spammed in my logs. Mind telling me what the issue is?

Quote:
L 08/02/2012 - 141:59: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 141:59: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 141:59: [SM] [0] Line 57, webshortcuts.sp::OnSay()
L 08/02/2012 - 141:59: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 141:59: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 141:59: [SM] [0] Line 57, webshortcuts.sp::OnSay()
L 08/02/2012 - 142:00: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 142:00: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 142:00: [SM] [0] Line 57, webshortcuts.sp::OnSay()
L 08/02/2012 - 142:00: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 142:00: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 142:00: [SM] [0] Line 57, webshortcuts.sp::OnSay()
L 08/02/2012 - 16:05:43: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 16:05:43: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 16:05:43: [SM] [0] Line 57, webshortcuts.sp::OnSay()
__________________
Elite Gamers
Visit us:www.Elite-Gamers.org
deathkilla is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 08-05-2012 , 14:22   Re: Web Shortcuts
Reply With Quote #282

Quote:
Originally Posted by deathkilla View Post
Hey, i keep getting this error spammed in my logs. Mind telling me what the issue is?
Since the OP hasn't been online for over three years, don't expect potential problems to be fixed any time soon. Like I said two posts up, I'd recommend using Web Shortcuts (Redux) instead.
__________________
11530 is offline
deathkilla
Senior Member
Join Date: Mar 2011
Old 08-06-2012 , 15:18   Re: Web Shortcuts
Reply With Quote #283

It was a general question, which could be answered by others. It was not directly towards sslice who has been offline for ages. There is more than 1 coder out there...
__________________
Elite Gamers
Visit us:www.Elite-Gamers.org
deathkilla is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 08-06-2012 , 16:41   Re: Web Shortcuts
Reply With Quote #284

Quote:
Originally Posted by deathkilla View Post
Code:
L 08/02/2012 - 141:59: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/02/2012 - 141:59: [SM] Displaying call stack trace for plugin "webshortcuts.smx":
L 08/02/2012 - 141:59: [SM] [0] Line 57, webshortcuts.sp::OnSay()
Quote:
Originally Posted by deathkilla View Post
It was a general question, which could be answered by others. It was not directly towards sslice who has been offline for ages. There is more than 1 coder out there...
It's kind of obvious what the problem is - the array is being accessed out of bounds. More specifically if no arguments are given in the say command callback then, in the code:

Code:
GetCmdArgString(text, sizeof(text));
new len = strlen(text);
len will equal zero, so text[len-1], on line 57, will try to access text[-1] which is out of bounds. To fix this the callback needs to bug out if GetCmdArgString returns less than one.
__________________

Last edited by 11530; 08-06-2012 at 16:43.
11530 is offline
topman16
New Member
Join Date: Oct 2013
Old 10-28-2013 , 05:24   Re: Web Shortcuts
Reply With Quote #285

Can anyone help me i cant get my donation command to work here is my code:
// usage: "trigger" "Title" http://www.site.com
// tags: {NAME} {STEAM_ID} {USER_ID} {IP} {SERVER_IP} {SERVER_PORT}
"!vip" "vip" http:////www.paypal.com/uk/cgi-bin/w...fef61ab7e9fe63
"!vip+" "vip+" http://www.paypal.com/uk/cgi-bin/web...fef61ab7e9fe63
topman16 is offline
delidolu1genc
Member
Join Date: Feb 2013
Location: Belgium
Old 01-27-2015 , 14:54   Re: Web Shortcuts
Reply With Quote #286

not running for cs:go ?
delidolu1genc is offline
Send a message via MSN to delidolu1genc Send a message via Skype™ to delidolu1genc
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-27-2015 , 15:16   Re: Web Shortcuts
Reply With Quote #287

Quote:
Originally Posted by delidolu1genc View Post
not running for cs:go ?
For cs:go use this https://forums.alliedmods.net/showthread.php?t=244075
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
morrow
Member
Join Date: Dec 2008
Old 03-17-2015 , 06:38   Re: Web Shortcuts
Reply With Quote #288

why?
morrow is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 03-17-2015 , 07:57   Re: Web Shortcuts
Reply With Quote #289

Quote:
Originally Posted by morrow View Post
why?
Because we can ;-)
Spoiler

Last edited by KissLick; 03-17-2015 at 17:43.
KissLick is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 11-19-2018 , 23:29   Re: Web Shortcuts
Reply With Quote #290

Updated syntax and fixed a bug where an array index was out of bounds:

.
Attached Files
File Type: sp Get Plugin or Get Source (webshortcuts.sp - 339 views - 3.8 KB)
File Type: smx webshortcuts.smx (6.7 KB, 176 views)

Last edited by JoinedSenses; 11-19-2018 at 23:30.
JoinedSenses is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode