26.07.2016, 13:12
Hi guys. Need help. I have "tag mismatch" warnings. Here are the lines
You may need some more info, so I will add more.
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,COLOR_PINKY,6,200);
PHP код:
FadePlayerScreen(playerid,COLOR_PINKY,6,200);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
FadePlayerScreen(playerid,BLACK,6,192);
PHP код:
public ClearFade(playerid)
{
if(FadeDone[playerid] == 1)
{
FadePlayerScreen(playerid,BLACK,6,192);
FadeDone[playerid] = 0;
Flight[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
PlaneSpawn[playerid] = 1;
UpdatePlayerInfo(playerid);
SpawnPlayer(playerid);
}
if(BuyCar[playerid] == 1)
{
SetPlayerPos(playerid,-1646.9950,1222.9421,7.0391);
SetPlayerFacingAngle(playerid,137.6366);
FadePlayerScreen(playerid,COLOR_PINKY,6,200);
PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
SetTimerEx("StopSond",7000, false,"i",playerid);
BuyCar[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"||- Congratulations you've got yourself a brand new car -||");
}
if(BuyCar[playerid] == 2)
{
SetPlayerPos(playerid,2148.0027,-1178.6327,23.8203);
SetPlayerFacingAngle(playerid,182.6657);
FadePlayerScreen(playerid,COLOR_PINKY,6,200);
PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
SetTimerEx("StopSond",7000, false,"i",playerid);
BuyCar[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"||- Congratulations you've got yourself a brand new car -||");
}
if(DriverTest[playerid] == 100)
{
FadePlayerScreen(playerid,BLACK,6,192);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1267.9253,-1800.5354,13.4039);
SendClientMessage(playerid, COLOR_BROWN, "||- You've done your theory, time for the driving test, please enter one of the school vehicles -||");
}
if(DriverTest[playerid] == 200)
{
SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
SetPlayerInterior(playerid,0);
FadePlayerScreen(playerid,BLACK,6,192);
SendClientMessage(playerid, COLOR_BROWN, "||- You've now done your theory, time for the driving test, please enter one of the school boats -||");
}
if(DriverTest[playerid] == 600)
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pCarLic] = 1;
SendClientMessage(playerid,COLOR_PINKY,"||- Congractulations you have earned the driver license -||");
DriverTest[playerid] = 0;
TestTimer[playerid] = 0;
FadePlayerScreen(playerid,BLACK,6,192);
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
SetTimerEx("StopMusic",5000, false,"i",playerid);
UpdatePlayerInfo(playerid);
return 1;
}
if(DriverTest[playerid] == 700)
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pCarLic] = 0;
SendClientMessage(playerid,COLOR_PINKY,"||- You have failed in the test, reason (vehicle damage's) -||");
DriverTest[playerid] = 0;
TestTimer[playerid] = 0;
FadePlayerScreen(playerid,BLACK,6,192);
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
return 1;
}
if(DriverTest[playerid] == 300)
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
FadePlayerScreen(playerid,BLACK,6,192);
PlayerInfo[playerid][pBoatLic] = 1;
LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
SetTimerEx("WalkTimer2",4000, false,"i",playerid);
SendClientMessage(playerid,COLOR_PINKY,"||- Congractulations you have earned the sailing license -||");
DriverTest[playerid] = 0;
TestTimer[playerid] = 0;
UpdatePlayerInfo(playerid);
return 1;
}
if(DriverTest[playerid] == 400)
{
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetPlayerPos(playerid,178.1042,-1923.9095,1.5648);
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
FadePlayerScreen(playerid,BLACK,6,192);
PlayerInfo[playerid][pCarLic] = 0;
LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
SetTimerEx("WalkTimer2",4000, false,"i",playerid);
SendClientMessage(playerid,COLOR_PINKY,"You have failed in the test, reason (vehicle damage)");
DriverTest[playerid] = 0;
TestTimer[playerid] = 0;
return 1;
}
return 1;
}
public ClearKnock(playerid)
{
TogglePlayerControllable(playerid, 1);
FadePlayerScreen(playerid,BLACK,6,192);
KnockedDown[playerid] = 0;
Freezed[playerid] = 0;
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s wakes up wasted unaware of his current state", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerDrunkLevel(playerid, 500);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("StopWasted", 10000, 0, "i", playerid);
for(new i=0;i<GetMaxPlayers();i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
return 1;
}