Warning
#5

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
pawn Код:
IsDsEnabled[playerid] == 0;
Use this in an if.

pawn Код:
IsDsEnabled[playerid] = 0;
Use this when setting something.
What in the world are you even thinking?
pawn Код:
if(IsDsEnabled[playerid] == 0;)
will give an error.

O.P, you should use
pawn Код:
IsDsEnabled[playerid] = 1;
when you want to manipulate the value of the variable, and to compare it with another value/variable you have to use the IF statement this way with two equals:
pawn Код:
if(IsDsEnabled[playerid] == 1)
{
    // code here.
}
Reply


Messages In This Thread
Warning - by ZigGamerx - 25.10.2018, 10:34
Re: Warning - by Calisthenics - 25.10.2018, 10:40
Re: Warning - by KinderClans - 25.10.2018, 11:00
Re: Warning - by Infin1ty - 25.10.2018, 12:23
Re: Warning - by MafiaOink - 25.10.2018, 12:42
Re: Warning - by FernandoLight - 27.10.2018, 09:49
Re: Warning - by GTLS - 27.10.2018, 10:19

Forum Jump:


Users browsing this thread: 3 Guest(s)