Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 24.04.2005, 23:12   #9
vaskes
Архивный участник
 
Join Date: Feb 2005
Posts: 156
Default

if info cached - your changes to mssql database will be reverted

query must be something like this

if exists (select * from user_item where char_id = @char_id and item_type = 57 and warehouse = 1)
update user_item set amount = amount+1000000 where char_id = @char_id and item_type = 57 and warehouse = 1)
else
insert into user_item (char_id, item_type, amount, enchant, eroded, bless, ident, wished, warehouse) values (@char_id, 57, 1000000, 0, 0, 0, 0, 0, 1)
vaskes is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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. The time now is 17:54.