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

AMXX-Studio crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-28-2015 , 17:08   AMXX-Studio crash
Reply With Quote #1

Okay so my AMXX-Studio crash when i use this long line of code.
Is it any way to fix this or do i need to start use notepad++?

Code:
formatex(MySQL_Query, charsmax(MySQL_Query), "UPDATE `top` SET `name` = '%s', `points` = '%i', `kills` = '%i', `deaths` = '%i', `knives` = '%i', `headshots` = '%i', `grenades` = '%i', `defuses` = '%i', `planted` = '%i', `detonated` = '%i', `mvp` = '%i' WHERE `steamid`='%s'", szName, playerInfo[id][Points], playerInfo[id][Kills], playerInfo[id][Deaths], playerInfo[id][Knives], playerInfo[id][Headshots], playerInfo[id][Grenades], playerInfo[id][Defuses], playerInfo[id][Planted], playerInfo[id][Detonated], playerInfo[id][MVP], szAuthid)
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 05-28-2015 at 17:09.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-28-2015 , 19:12   Re: AMXX-Studio crash
Reply With Quote #2

try like this
PHP Code:
formatex(MySQL_Querycharsmax(MySQL_Query), "UPDATE `top` SET `name` = '%s', `points` = '%i', `kills` = '%i', `deaths` = '%i', `knives` = '%i', `headshots` = '%i', `grenades` = '%i', `defuses` = '%i', `planted` = '%i', `detonated` = '%i', `mvp` = '%i' WHERE 
`steamid`='%s'"
szNameplayerInfo[id][Points], playerInfo[id][Kills], playerInfo[id][Deaths], playerInfo[id][Knives], playerInfo[id][Headshots], playerInfo[id][Grenades], playerInfo[id][Defuses], playerInfo[id][Planted], playerInfo[id][Detonated], playerInfo[id][MVP], szAuthid
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-29-2015 , 09:29   Re: AMXX-Studio crash
Reply With Quote #3

Doesnt work.
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-29-2015 , 10:01   Re: AMXX-Studio crash
Reply With Quote #4

Is it the AMXX Studio or the compiler crashing? Does the crash happen when you compile or just when you type in that text?
Try compiling manually through the command line/terminal.
klippy is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-29-2015 , 10:36   Re: AMXX-Studio crash
Reply With Quote #5

Quote:
Originally Posted by KliPPy View Post
Is it the AMXX Studio or the compiler crashing? Does the crash happen when you compile or just when you type in that text?
Try compiling manually through the command line/terminal.
Tested with the compiler to and it doesnt show anything when i compile.

Only the plugin name.

like top.sma compiles.......
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-29-2015 , 10:51   Re: AMXX-Studio crash
Reply With Quote #6

Well, try to divide stuff. use formatex for the first fomarting and than use format to format the same buffer.
__________________
Jhob94 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-29-2015 , 11:05   Re: AMXX-Studio crash
Reply With Quote #7

Try top cut string with \
__________________
Arkshine is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 05-29-2015 , 11:39   Re: AMXX-Studio crash
Reply With Quote #8

Hope you get it working Brotha!
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-29-2015 , 11:42   Re: AMXX-Studio crash
Reply With Quote #9

Quote:
Originally Posted by Jhob94 View Post
Well, try to divide stuff. use formatex for the first fomarting and than use format to format the same buffer.
Dont really want to hardcode it


Quote:
Originally Posted by Arkshine View Post
Try top cut string with \
Can you show me. Im not really getting what you mean.
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-29-2015 , 12:05   Re: AMXX-Studio crash
Reply With Quote #10

Quote:
Originally Posted by ironskillz1 View Post
Can you show me. Im not really getting what you mean.
You are able to break a string into multiple lines by putting a backslash ( \ ) at the end of the line. And no other characters are allowed to follow that backslash, not even spaces.

PHP Code:
new const multiline[] = "I am \
breaking this string \
into multiple lines"


Last edited by klippy; 05-29-2015 at 12:07.
klippy is offline
Reply



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 08:31.


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