|
You last visited: Today at 21:09
Advertisement
Fix Procedure
Discussion on Fix Procedure within the SRO PServer Questions & Answers forum part of the SRO Private Server category.
11/25/2021, 00:03
|
#1
|
elite*gold: 0
Join Date: Sep 2015
Posts: 89
Received Thanks: 4
|
Fix Procedure
need fix this to work i try to add it to give random silk 10~50
Msg 137, Level 15, State 2, Line 33
Must declare the scalar variable "@CharID".
Code:
IF [MENTION=1059401]operation[/MENTION] = 16
BEGIN
IF (@ItemRefID = 43914) -- RefObjCommon ID (Scroll) (By ShuJaira)
BEGIN
declare [MENTION=304630]upper[/MENTION]_shujaira int = '50' declare [MENTION=759738]lower[/MENTION]_shujaira int = '20'
declare [MENTION=3950628]Random_[/MENTION]shujaira int = ROUND(( [MENTION=304630]upper[/MENTION]_shujaira - [MENTION=759738]lower[/MENTION]_shujaira -1) * RAND() + [MENTION=759738]lower[/MENTION]_shujaira), 0)
set @charname = (select CharName16 from sro_vt_shard.dbo._Char where CharID=@CharID)
end
BEGIN
DECLARE [MENTION=831308]userid[/MENTION] varchar(56) = (SELECT JID FROM SRO_VT_ACCOUNT.dbo.TB_User U WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._User U2 WITH(NOLOCK) ON U.JID = U2.UserJID WHERE CharID = @CharID)
EXEC SRO_VT_ACCOUNT.CGI.[CGI_WebPurchaseSilkPServer] [MENTION=831308]userid[/MENTION] [MENTION=3950628]Random_[/MENTION]shujaira -- for silks
END
END
|
|
|
11/25/2021, 06:32
|
#2
|
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
|
Quote:
Originally Posted by hodamoseba
need fix this to work i try to add it to give random silk 10~50
Msg 137, Level 15, State 2, Line 33
Must declare the scalar variable @  D".
Code:
IF [MENTION=1059401]operation[/MENTION] = 16
BEGIN
IF (@ItemRefID = 43914) -- RefObjCommon ID (Scroll) (By ShuJaira)
BEGIN
declare [MENTION=304630]upper[/MENTION]_shujaira int = '50' declare [MENTION=759738]lower[/MENTION]_shujaira int = '20'
declare [MENTION=3950628]Random_[/MENTION]shujaira int = ROUND(( [MENTION=304630]upper[/MENTION]_shujaira - [MENTION=759738]lower[/MENTION]_shujaira -1) * RAND() + [MENTION=759738]lower[/MENTION]_shujaira), 0)
set [MENTION=444787]Char[/MENTION]name = (select CharName16 from sro_vt_shard.dbo._Char where CharID [MENTION=395373]Chari[/MENTION]D)
end
BEGIN
DECLARE [MENTION=831308]userid[/MENTION] varchar(56) = (SELECT JID FROM SRO_VT_ACCOUNT.dbo.TB_User U WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._User U2 WITH(NOLOCK) ON U.JID = U2.UserJID WHERE CharID = [MENTION=395373]Chari[/MENTION]D)
EXEC SRO_VT_ACCOUNT.CGI.[CGI_WebPurchaseSilkPServer] [MENTION=831308]userid[/MENTION] [MENTION=3950628]Random_[/MENTION]shujaira -- for silks
END
END
|
do you even read the error?
Must declare the scalar variable @  D".
You have to declare the charid
Declare @  D int;
|
|
|
11/25/2021, 10:34
|
#3
|
elite*gold: 0
Join Date: Sep 2015
Posts: 89
Received Thanks: 4
|
Quote:
Originally Posted by NorseGodTyr
do you even read the error?
Must declare the scalar variable @  D".
You have to declare the charid
Declare @  D int;
|
i try to fix it buy you know i,m just started now
i,m new can,t do this
|
|
|
11/25/2021, 11:25
|
#4
|
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
|
Quote:
Originally Posted by hodamoseba
i try to fix it buy you know i,m just started now
i,m new can,t do this 
|
this is a Declare
Declare @  D int;
|
|
|
11/25/2021, 14:24
|
#5
|
elite*gold: 0
Join Date: Sep 2015
Posts: 89
Received Thanks: 4
|
Quote:
Originally Posted by NorseGodTyr
this is a Declare
Declare @  D int;
|
so error here if you can fix code fix bro i really don,t know
Code:
declare [MENTION=304630]upper[/MENTION]_shujaira int = '50' declare [MENTION=759738]lower[/MENTION]_shujaira int = '20'
declare [MENTION=3950628]Random_[/MENTION]shujaira int = ROUND(( [MENTION=304630]upper[/MENTION]_shujaira - [MENTION=759738]lower[/MENTION]_shujaira -1) * RAND() + [MENTION=759738]lower[/MENTION]_shujaira), 0)
set [MENTION=3898309]charname[/MENTION] = (select CharName16 from sro_vt_shard.dbo._Char where CharID [MENTION=444787]Char[/MENTION]ID)
end
|
|
|
11/25/2021, 20:58
|
#6
|
elite*gold: 0
Join Date: Oct 2021
Posts: 15
Received Thanks: 0
|
delet MENTION
|
|
|
11/25/2021, 23:47
|
#7
|
elite*gold: 0
Join Date: Sep 2015
Posts: 89
Received Thanks: 4
|
Quote:
Originally Posted by Dev_Ninja
delet MENTION
|
like this
Code:
IF [MENTION=1059401]operation[/MENTION] = 16
BEGIN
IF (@ItemRefID = 43914) -- RefObjCommon ID (Scroll) (By ShuJaira)
BEGIN
declare [MENTION=304630]upper[/MENTION] int = '50' declare [MENTION=759738]lower[/MENTION] int = '20'
declare [MENTION=284104]Random[/MENTION] int = ROUND(( [MENTION=304630]upper[/MENTION] - [MENTION=759738]lower[/MENTION] -1) * RAND() + [MENTION=759738]lower[/MENTION]), 0)
set @charname = (select CharName16 from sro_vt_shard.dbo._Char where CharID=@CharID)
end
BEGIN
DECLARE [MENTION=831308]userid[/MENTION] varchar(56) = (SELECT JID FROM SRO_VT_ACCOUNT.dbo.TB_User U WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._User U2 WITH(NOLOCK) ON U.JID = U2.UserJID WHERE CharID = @CharID)
EXEC SRO_VT_ACCOUNT.CGI.[CGI_WebPurchaseSilkPServer] [MENTION=831308]userid[/MENTION] [MENTION=284104]Random[/MENTION] -- for silks
END
END
|
|
|
11/27/2021, 01:32
|
#8
|
elite*gold: 0
Join Date: Sep 2015
Posts: 89
Received Thanks: 4
|
up
|
|
|
 |
Similar Threads
|
_AddTimedJob Procedure - Help me to fix it
08/17/2016 - SRO Private Server - 7 Replies
Hello,
I'm using vsro database, and wanna to create a lottery item by following speps of this thread
I've successfully done every step, only have a prob with making the AddTimedJob Procedure well. I've made a simple copy + paste with a bit editing of @ JobID,but it doesn't work.
Guys, could any of you help me how I should fix it? :confused:
CODE: if @ JobID = '35129') ------- JobID = RefSkill ID
begin
|
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
|
[Urgently] msvcr100.dll error need procedure to fix this.
04/02/2012 - SRO Private Server - 5 Replies
msvcr100.dll
i was trying to run phconnector and it seems ive got a problem running to it...
this pop up msg saying .....
This application has failed to start because MSVCR100.dll was not found. Re-installing the application may fix this Problem.
sum1 help me fix this?
thanks in advance...
|
All times are GMT +1. The time now is 21:12.
|
|