Yoko

All sides of Injection
It is currently 2026-05-02 23:16:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2008-05-09 15:32:50 
Offline
User avatar

Joined: 2005-08-09 23:16:57
Posts: 97
Нужно выравнивать индекс относительно положения строки.
Например:

Code:
   Type[23]='0x1F5F' ; Scroll FlameStrike
   Type[24]='0x1F52' ; Scroll Paralize
   Type[63]='0x1F4A' ; Lighting Scroll
   Type[62]='0x0E34' ; Blank scroll


Нужно выровнять как:

Code:
   Type[0]='0x1F5F' ; Scroll FlameStrike
   Type[1]='0x1F52' ; Scroll Paralize
   Type[2]='0x1F4A' ; Lighting Scroll
   Type[3]='0x0E34' ; Blank scroll


В массиве больше 70 элементов, и править все руками не представляется рациональным. К тому же, не исключено, что время от времени придется добавлять элементы в середину массива, и каждый раз править очередность — сдохнуть можно.

Если мне не изменяет память, кто-то уже написал php-скрипт, который выравнивает индексы построчно. Но найти я его не смог.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited