[Help]tag mismatch
#1

Help?...
Код:
C:\Documents and Settings\yossi\щемзп дтбегд\гбшйн\ълреъ\samp\0.2.2\gamemodes\bus.pwn(321) : warning 213: tag mismatch
C:\Documents and Settings\yossi\щемзп дтбегд\гбшйн\ълреъ\samp\0.2.2\gamemodes\bus.pwn(338) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
the code himself
Код:
	if(strcmp("/driver", cmdtext, true, 10) == 0)
 	{
 	if(!BusDriver[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You're already a BUS driver!");
 	if(!IsPlayerInVehicle(playerid,buscar)) return SendClientMessage(playerid,COLOR_RED,"You're not in the BUS!");
	new PName[24];
	GetPlayerName(playerid,PName,24);
	format(string,256,"%s(id:%d) Is on duty as A Bus Driver",PName,playerid);
	SendClientMessageToAll(COLOR_GREEN,string);
	SendClientMessage(playerid,COLOR_GREEN,"You Are Now Work As A Bus Driver,Enjoy Your Job Sir!");
	DisablePlayerCheckpoint(playerid);
 	DRIVERCP[playerid]++;
  	SetPlayerCheckpoint(playerid,BusCP[1][0],BusCP[1][1],BusCP[1][2],5.0);
  	BusDriver[playerid] = 1;
	return 1;
	}
	if(strcmp("/driveroff", cmdtext, true, 10) == 0)
 	{
 	if(!BusDriver[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not a bus driver...");
 	if(!IsPlayerInVehicle(playerid,buscar)) return SendClientMessage(playerid,COLOR_RED,"You're not in the BUS!");
	new PName[24];
	GetPlayerName(playerid,PName,24);
	format(string,256,"%s(id:%d) Is no longer on duty as A Bus Driver",PName,playerid);
	SendClientMessageToAll(COLOR_BLUE,string);
	SendClientMessage(playerid,RED,"You Are No Longer Work As A Bus Driver!");
	DisablePlayerCheckpoint(playerid);
 	DRIVERCP[playerid] = -1;
 	SendClientMessage(playerid,COLOR_GREEN,"You have grab all the passengers And you have earned 120$");
  	BusDriver[playerid] = 0;
	return 1;
	}
Error lines:
Код:
321 : if(!BusDriver[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You're already a BUS driver!");
338 : if(!BusDriver[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not a bus driver...");
Reply
#2

By the way if your varible is !BusDriver change to BusDriver


Try this code



if(BusDriver[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You're already a BUS driver!");
if(BusDriver[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not a bus driver...");
Reply
#3

try changing:
pawn Код:
321 : if(BusDriver[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You're already a BUS driver!");
338 : if(BusDriver[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not a bus driver...");
EDIT: Damn, someone writed first
Reply
#4

ROFL
Reply
#5

Quote:
Originally Posted by Dreftas
try changing:
pawn Код:
321 : if(BusDriver[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You're already a BUS driver!");
338 : if(BusDriver[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not a bus driver...");
EDIT: Damn, someone writed first
thanks,it's works
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)