Little Help!
#1

Hi all I want to do one system but I got some errors and warnings which I don`t understand how to fix can any one take a look?

pawn Код:
enum GiftInfo
{
    Float:Gift[3],
    GiftText[54],
    Text3D:label2
}
new GiftBox[][GiftInfo] =
{
    {{909.0928,2024.3037,65.6028},{"{FFD900}[ {FFFFFF}GIFT {FFD900}]"},{909.0928,2024.3037,65.6028}}
};
Warnings and errors
Код:
D:\SA-MP Server Stuff 2\SA-MP Server\gamemodes\battletestv6.pwn(259) : warning 228: length of initialler exceeds size of the enum field
D:\SA-MP Server Stuff 2\SA-MP Server\gamemodes\battletestv6.pwn(259) : warning 213: tag mismatch
D:\SA-MP Server Stuff 2\SA-MP Server\gamemodes\battletestv6.pwn(259) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Show line 259.
Reply
#3

pawn Код:
{{909.0928,2024.3037,65.6028},{"{FFD900}[ {FFFFFF}GIFT {FFD900}]"},{909.0928,2024.3037,65.6028}}
Reply
#4

Anyone??
Reply
#5

Can you show us the usage of it? because when I try the code it compiles perfectly
Reply
#6

Just Use {909.0928,2024.3037,65.6028},{"{FFD900}[ {FFFFFF}GIFT {FFD900}]"} first
and the Use Create3DTextLabel for the Other Part.
Reply
#7

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Can you show us the usage of it?
Look.I need to fix this array. Without this I can`t make other things so.Problem is in that line only.
Reply
#8

Quote:
Originally Posted by Sanady
Посмотреть сообщение
Look.I need to fix this array. Without this I can`t make other things so.Problem is in that line only.
Alright, since you don't have any usage of this code, & this code compiled perfectly to me
pawn Код:
{ 909.0928, 2024.3037, 65.6028, "{FFD900}[ {FFFFFF}GIFT {FFD900}]", 909.0928, 2024.3037, 65.6028 }
Reply
#9

pawn Код:
enum GiftInfo
{
    Float: Gift[3],
    GiftText[ 54 ],
    Text3D: label2
};

new
    GiftBox[ 1 ][ GiftInfo ] =
    {
        { { 909.0928, 2024.3037, 65.6028 }, "{FFD900}[ {FFFFFF}GIFT {FFD900}]", Text3D: INVALID_3DTEXT_ID }
    }
;
You'll have to update the ID of the 3D label later on.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)