Little Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little Help! (
/showthread.php?tid=478771)
Little Help! -
Sanady - 01.12.2013
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.
Re: Little Help! -
Avi Raj - 01.12.2013
Show line 259.
Re: Little Help! -
Sanady - 01.12.2013
pawn Код:
{{909.0928,2024.3037,65.6028},{"{FFD900}[ {FFFFFF}GIFT {FFD900}]"},{909.0928,2024.3037,65.6028}}
Re: Little Help! -
Sanady - 01.12.2013
Anyone??
Re: Little Help! - Patrick - 01.12.2013
Can you show us the usage of it? because when I try the code it compiles perfectly
Re: Little Help! -
Avi Raj - 01.12.2013
Just Use {909.0928,2024.3037,65.6028},{"{FFD900}[ {FFFFFF}GIFT {FFD900}]"} first
and the Use Create3DTextLabel for the Other Part.
Re: Little Help! -
Sanady - 01.12.2013
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.
Re: Little Help! - Patrick - 01.12.2013
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 }
Re: Little Help! -
Konstantinos - 01.12.2013
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.