[Question] About random..again..
#1

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:
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;
here are my warnings;
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.
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.
Reply


Messages In This Thread
[Question] About random..again.. - by boelie - 26.08.2011, 14:58
Re: [Question] About random..again.. - by Kingunit - 26.08.2011, 15:01
Re: [Question] About random..again.. - by Lenny the Cup - 26.08.2011, 15:05
Re: [Question] About random..again.. - by boelie - 26.08.2011, 15:41
Re: [Question] About random..again.. - by iggy1 - 26.08.2011, 15:44
Re: [Question] About random..again.. - by boelie - 26.08.2011, 15:48
Re: [Question] About random..again.. - by iggy1 - 26.08.2011, 15:50
Re: [Question] About random..again.. - by boelie - 26.08.2011, 15:59
Re: [Question] About random..again.. - by boelie - 26.08.2011, 17:00
Re: [Question] About random..again.. - by iggy1 - 27.08.2011, 07:48

Forum Jump:


Users browsing this thread: 2 Guest(s)