11.08.2009, 10:45
Help?...
the code himself
Error lines:
Код:
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.
Код:
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; }
Код:
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...");