SA-MP Forums Archive
Enum help , with seifs FS - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enum help , with seifs FS (/showthread.php?tid=158423)



Enum help , with seifs FS - Ivan_Pantovic - 09.07.2010

Hello everyone , i have downloaded seifs FS , and i'm trying to put it in my GM (as he recommanded to) , but i have aleready done that with his other FS ( bomb system ) . All's fine for it self , but when i try to use 2 enums , i get errors :
pawn Код:
Seifs vehicle system need this :
enum vInfo
{
    vModel,
    Float:vX,
    Float:vY,
    Float:vZ,
    Float:vA,
    Float:vPX,
    Float:vPY,
    Float:vPZ,
    Float:vPA,
    vColor1,
    vColor2,
    vPaintjob,
    vMod[MAX_MODS],
    vOwner[MAX_PLAYER_NAME],
    vName[128],
    vLock,
    vPark,
}


Seifs Bomber need this :
enum bombInfo
{
    bombPlanter[MAX_PLAYER_NAME],
    Float:bombX,
    Float:bombY,
    Float:bombZ,
};


when i put it both inside , it doesn't count both of them and i get few errors , I'm pritty sure this is the problem
errors/warnings i get :
Код:
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 219: local variable "vX" shadows a variable at a preceding level
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 219: local variable "vY" shadows a variable at a preceding level
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 219: local variable "vZ" shadows a variable at a preceding level
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28697) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28698) : warning 213: tag mismatch
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28698) : warning 213: tag mismatch
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28698) : warning 213: tag mismatch
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 203: symbol is never used: "vZ"
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 203: symbol is never used: "vY"
C:\DOCUME~1\Ivan\Desktop\GTARP\GAMEMO~1\gtarp.pwn(28691) : warning 203: symbol is never used: "vX"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
sorry for my bad english


Re: Enum help , with seifs FS - [HiC]TheKiller - 09.07.2010

You already have most of the variables + Ask in that topic.


Re: Enum help , with seifs FS - Ivan_Pantovic - 09.07.2010

can anyone tell me how to fix this/ make this work ?


Re: Enum help , with seifs FS - Ivan_Pantovic - 10.07.2010

Bump , please help :/