01.05.2009, 11:00
ok Hello i have 3 Problems
Fist:
I have This code and it should when the players life is on 30 Apply a animation and Freeze The player But its Dont work.. No Errors or Warnings..
In Top Of The Script
Secound:
This Code Works Pretty Good but only one thing whit it It Disaply 10000 Message and not one..
No Errors No Warnings..
Then When i Use /Hooddown it should set my skin back to the old skin But dont..
Now The last thing..
Enters and exit... This Have Those Errors And Warnings
and the Errors Line is in this
Many thx to all you there gonna help me
Fist:
I have This code and it should when the players life is on 30 Apply a animation and Freeze The player But its Dont work.. No Errors or Warnings..
Код:
public HealthCheck(playerid)
{
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==30)
{
IsInjured[playerid] = true;
TogglePlayerControllable(playerid,false);
ApplyAnimation(playerid,"CRACK","crckdeth4",10,1,0,0,0,0);
SendClientMessage(playerid,COLOR_INFO,"Shit Homie you passout!");
}
return 1;
}
Код:
public OnPlayerConnect(playerid)
{
IsInjured[playerid] = false;
}
Код:
public OnPlayerDisconnect(playerid, reason)
{
IsInjured[playerid] = false;
}
Код:
new IsInjured[MAX_PLAYERS] = 0;
This Code Works Pretty Good but only one thing whit it It Disaply 10000 Message and not one..
No Errors No Warnings..
Код:
if(strcmp(cmdtext, "/hoodup", true) == 0)
{
if(IsMasked[playerid] == 0)
{
for(new all = 0; all < MAX_PLAYERS; all++)
{
new maskedname[MAX_PLAYER_NAME], maskedstring[256];
new SkinID = GetPlayerSkin(playerid);
GetPlayerName(playerid, maskedname, sizeof(maskedname));
format(maskedstring, sizeof(maskedstring), "%s puts his hood up and hides his identity.", maskedname);
SendClientMessageToAll(COLOR_LIGHTBLUE, maskedstring);
OldSkin[playerid] = SkinID;
SetPlayerSkin(playerid, 29);
ShowPlayerNameTagForPlayer(all, playerid, 0); // Hide his name tag to everyone.
IsMasked[playerid] = true;
}
}
Код:
if(strcmp(cmdtext, "/hooddown", true) == 0)
{
if(IsMasked[playerid] == 1)
{
for(new all = 0; all < MAX_PLAYERS; all++)
{
new maskedname[MAX_PLAYER_NAME], maskedstring[256];
GetPlayerName(playerid, maskedname, sizeof(maskedname));
format(maskedstring, sizeof(maskedstring), "%s puts his hood down and reveals his identity.", maskedname);
SendClientMessageToAll(COLOR_LIGHTBLUE, maskedstring);
new pskin = OldSkin[playerid];
SetPlayerSkin(playerid, pskin);
ShowPlayerNameTagForPlayer(all, playerid, 1); // Show his name tag to everyone.
IsMasked[playerid] = 0;
} }
return 1;
}
Enters and exit... This Have Those Errors And Warnings

Код:
C:\Documents and Settings\Game User\Skrivebord\Server\gamemodes\Hooligans.pwn(479) : warning 217: loose indentation C:\Documents and Settings\Game User\Skrivebord\Server\gamemodes\Hooligans.pwn(480) : error 029: invalid expression, assumed zero C:\Documents and Settings\Game User\Skrivebord\Server\gamemodes\Hooligans.pwn(480) : warning 215: expression has no effect C:\Documents and Settings\Game User\Skrivebord\Server\gamemodes\Hooligans.pwn(480) : error 001: expected token: ";", but found "if" C:\Documents and Settings\Game User\Skrivebord\Server\gamemodes\Hooligans.pwn(501) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
else if(PlayerToPoint(3, playerid, 1952.4366,-2041.1591,13.5469))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 1212.0717,-26.4746,1000.9531);
GameTextForPlayer(playerid,"~w~Welcome To ~b~Mistys ~w~Bar",1000,4);
return 1;
}
Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(PlayerToPoint(3, playerid, 2309.5950,-1644.0006,14.8270))
{
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid, 501.8805,-69.2261,998.7578);
GameTextForPlayer(playerid,"~w~Welcome To ~g~Ten Green Bottlesґs~w~ Bar",1000,4);
return 1;
}
else if(PlayerToPoint(3, playerid, 2002.5980,-1281.6320,23.9788))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 940.8422,-17.9999,1000.9297);
GameTextForPlayer(playerid,"~w~Welcome to ~w~lavanderias~w~bar",1000,4);
{
else if(PlayerToPoint(3, playerid, 1952.4366,-2041.1591,13.5469))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 1212.0717,-26.4746,1000.9531);
GameTextForPlayer(playerid,"~w~Welcome To ~b~Mistys ~w~Bar",1000,4);
return 1;
}
else if(PlayerToPoint(3, playerid, 2066.3733,-1703.3490,14.1484))
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid, -68.9225,1352.0665,1080.2109);
GameTextForPlayer(playerid,"~r~ Big dogs ~w~House",1000,4);
}
else if(PlayerToPoint(3, playerid, 2306.5654,-1785.7003,13.5575))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 1531.4043,-7.4368,1002.0971);
GameTextForPlayer(playerid,"~r~Matts ~w~House",1000,4);
}
}
//__________________EXIT__________________________
if(strcmp(cmdtext, "/exit", true, 6) == 0)
{
if(PlayerToPoint(3, playerid, 501.8805,-69.2261,998.7578))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2309.5950,-1644.0006,14.8270);
return 1;
}
else
if(PlayerToPoint(3, playerid, 940.8422,-17.9999,1000.9297))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2002.5980,-1281.6320,23.9788);
return 1;
}
else
if(PlayerToPoint(3, playerid, 1212.0717,-26.4746,1000.9531))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1952.4366,-2041.1591,13.5469);
return 1;
}
else
if(PlayerToPoint(3, playerid, -68.9225,1352.0665,1080.2109))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2066.3733,-1703.3490,14.1484);
return 1;
}
else
if(PlayerToPoint(3, playerid, 1531.4043,-7.4368,1002.0971))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2306.5654,-1785.7003,13.5575);
return 1;
}
}
}
}

