Problem
#1

.....
Reply
#2

your code compiled on me. are you sure that is the correct line where the warning pointing at?
Reply
#3

~~~~
Reply
#4

ohh. now i know your problem. your defining it as bool variable so

change 1 to true

EDIT

Quick Tutorial
for you so you can understand what is the difference between bool variable and normal variable

Bool Variable
pawn Код:
//if you are using bool you must true or false, you can't use 1 or 0 or else it will give you warning tag mismatch
//Example

//Variable
new bool:IsJailed[MAX_PLAYERS];
new bool:IsCaged[MAX_PLAYERS];

//Example
if(IsJailed[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use Commands When Jailed.");
if(IsCaged[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Caged.");
//it will send those message automaticaly if the bool variable is set to true Example: IsJailed[playerid] = true;
Normal Variable
pawn Код:
//if you are using normal you can use 1 or true (about true im not sure as i never tried using true on normal variable. so to be sure put 1)

//Example

//Variable
new IsJailed[MAX_PLAYERS];
new IsCaged[MAX_PLAYERS];

//Example
if(IsJailed[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use Commands When Jailed.");
if(IsCaged[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Caged.");
//it will send those message automaticaly if the bool variable is set to 1 Example: IsJailed[playerid] = 1;
Reply
#5

~~~~
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)