SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/12/2019, 03:04 PM   #11
coool
Gangsta
 
coool's Avatar
 
Join Date: Feb 2013
Location: Republic of Pakistan
Posts: 625
Reputation: 54
Default Re: [Help] Server Error :<

I'm sorry, I can't find the problem array. wait for some one else.
__________________
coool is offline   Reply With Quote
Old 09/12/2019, 03:07 PM   #12
MatusVietNam
Little Clucker
 
Join Date: Nov 2019
Posts: 44
Reputation: 0
Default Re: [Help] Server Error :<

Help me please
MatusVietNam is offline   Reply With Quote
Old 09/12/2019, 03:09 PM   #13
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,162
Reputation: 73
Default Re: [Help] Server Error :<

problem might be a listitem, where you placed -1.
or, might be caused by inputtext (which is somehow an integer in your log)
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 09/12/2019, 08:32 PM   #14
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,229
Reputation: 205
Default Re: [Help] Server Error :<

The mistake is in this line:
Code:
for (new i = 0; i <= sizeof(StoreItems); i++) format(szDialog, sizeof(szDialog), "%s%s ($%s) (Gia co the ban: $%s)\n", szDialog, StoreItems[i], number_format(Businesses[iBusiness][bItemPrices][i]), number_format(floatround(StoreItemCost[i][ItemValue] * BUSINESS_ITEMS_COST)));
It must be < sizeof (...); because valid indexes are 0 to sizeof-1.
Calisthenics is offline   Reply With Quote
Old 09/12/2019, 11:46 PM   #15
MatusVietNam
Little Clucker
 
Join Date: Nov 2019
Posts: 44
Reputation: 0
Default Re: [Help] Server Error :<

I don't know why it brought fault to me, which was not damaged in the first place "<
MatusVietNam is offline   Reply With Quote
Old 10/12/2019, 09:26 AM   #16
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: [Help] Server Error :<

try to change:
PHP Code:
else if(dialogid == DIALOG_STOREITEMPRICE
to:
PHP Code:
if(dialogid == DIALOG_STOREITEMPRICE
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server crashed due to an unknown error (Critical Error) Callisto Scripting Help 14 19/07/2018 04:09 PM
[FRAG.GS] error: Oh no! The server couldn't be started (Unknown error). BluePT Server Support 3 03/12/2016 08:34 PM
(error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for t SandKing94 Scripting Help 3 22/05/2015 08:53 AM
Server Error - Run time error 19 Alyo Server Support 6 04/03/2015 06:40 PM
GameMode Error - Other threads doesn't help! (samp-server.exe starts but gives an error) Spose Scripting Help 6 04/04/2013 08:12 AM


All times are GMT. The time now is 04:56 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.