Business system is getting errors.
#1

I declared BizID like this:
pawn Код:
enum bInfo {
    bOwned,
    bPrice,
    bOwner[MAX_PLAYER_NAME],
    bType,
    bLocked,
    bMoney,
    Float:bEntranceX,
    Float:bEntranceY,
    Float:bEntranceZ,
    Float:bEntranceA,
    Float:bExitX,
    Float:bExitY,
    Float:bExitZ,
    Float:bExitA,
    bInt,
    bWorld,
    bInsideInt,
    bInsideWorld,
    bInsideIcon,
    bOutsideIcon,
    bName[128],
}
new BusinessInfo[200][bInfo];//We are creating a define to use for our Enum.
new BizID;
Errors:
Код:
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1396) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1444) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1448) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1461) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1462) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1467) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1475) : warning 213: tag mismatch
F:\Mustafa\Dutch-RealLife\gamemodes\Haci.pwn(1476) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
It all with the BizID in it, I defined wrong? If I put in the enum I get more errors.
The tutorial says I have to put it under the enum.
https://sampforum.blast.hk/showthread.php?tid=349466
One error line.
if(id != PlayerInfo[playerid][BizID]) return SCM(playerid, COLOR_GREY, "This isn't your biz!");
Reply
#2

no, you can't use [playerid] when you made the array BusinessInfo[200][bInfo] . if you hsd tu use playerid, then it had to be
BusinessInfo[MAX_PLAYERS][bInfo]
here, you must use the businessid, so something like
if(id != BusinessInfo[0]BizId] )
so you must use numbers.
Reply
#3

bump ...
Reply
#4

you might want to say *some warnings.
that type of warning would definitely effect the script. the script he created would simply not work
anyways, telling someone to download a script and remove this one is just the most stupid advice you can give. He came to ask how to fix those errors.
Reply
#5

Please tell us the error, you only have warnings which are tag mismatches where you have not given us the codes for those lines.
Reply
#6

I think the BizID was standing for if he/she have owned a business so I put it on my playerinfo enum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)