26.08.2011, 14:58
Hello,
Im trying to make a random value but it keeps giving me tag mismatch error or its just not working at all
heres how i made the random, and weed crack and canabis are the values that need to be true:
here are my warnings;
I dont think it works like this anyway because the stuff i put in random already excists in the enum.
please give me your suggestion.
Im trying to make a random value but it keeps giving me tag mismatch error or its just not working at all
heres how i made the random, and weed crack and canabis are the values that need to be true:
pawn Код:
//the enum...
enum DrugInfo
{
Crack,
Marijuana,
Weed,
Cocaine,
Canabis,
Ganja,
Heroin,
}
new DrugType[MAX_PLAYERS][DrugInfo];
//and the random that is in a callback
new randomvalue[3]={Weed,Crack,Canabis};
DrugType[playerid][randomvalue[random(sizeof randomvalue)] =1;
pawn Код:
C:\Games\Rockstar Games\GTA San Andreas\sampserver\filterscripts\DontDoDrugsMan.pwn(368) : warning 213: tag mismatch
C:\Games\Rockstar Games\GTA San Andreas\sampserver\filterscripts\DontDoDrugsMan.pwn(368) : warning 213: tag mismatch
C:\Games\Rockstar Games\GTA San Andreas\sampserver\filterscripts\DontDoDrugsMan.pwn(369) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
please give me your suggestion.