Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Help Print Serial, Compare Serial Self to Serial Gump

Ask for help
Post Reply
Hisered
Posts: 9
Joined: 02.06.2016 6:20

Help Print Serial, Compare Serial Self to Serial Gump

Post by Hisered »

how can I do that??
If (Get GumpSerial (loop) = IntToHex (self, 8 )) then

Log:

Code: Select all

15:06:04:271 [xxxxxxxxxx]: Compiling
15:06:04:319 [xxxxxxxxxx]: Compiler: [Error] ( at 17:50):  Incompatible types ;
Error line is: "         If (GetGumpSerial(loop) = IntToHex(self,8)) then "
15:06:04:320 [xxxxxxxxxx]: Compiling failed
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Help Print Serial, Compare Serial Self to Serial Gump

Post by Vizit0r »

gumpserial(and Gump ID) has no any link with Char ID.
maybe on your shard...but i think no.

Anyway

Code: Select all

if GetGumpSerial(loop) = SelfId then
...
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Hisered
Posts: 9
Joined: 02.06.2016 6:20

Re: Help Print Serial, Compare Serial Self to Serial Gump

Post by Hisered »

the server where i am play. all serial gump is = a serial person
Although all gumps, have the same serial.
the GumpID each gump is always random.
the solution is to read the TextLines all gumps to find what interests me.

thanks again.
Post Reply