30.07.2011, 05:45
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new playerinfight[Target]=1; // let the system know that heґs in fight
return 1;
}
pawn Код:
if (strcmp("/bsj5", cmdtext, true, 10) == 0)
{
if(playerinfight[Target]=1;)return SendClientMessage(playerid, 0x007F00FF, "You in fight");
new pName[MAX_PLAYER_NAME];
DynUpdateStart(playerid);
SetPlayerPos(playerid,2587.1448,1352.4722,78.4764);
SetPlayerFacingAngle(playerid, 177.6544);
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has teleported to Base Jump 5 (/bsj5) ", pName);
SendClientMessageToAll(COLOR_CYAN, string);
return 1;
}
Код:
C:\DOCUME~1\Prabhat\Desktop\lvdm.pwn(1261) : error 017: undefined symbol "playerinfight" C:\DOCUME~1\Prabhat\Desktop\lvdm.pwn(1261) : error 017: undefined symbol "Target" C:\DOCUME~1\Prabhat\Desktop\lvdm.pwn(1261) : error 029: invalid expression, assumed zero C:\DOCUME~1\Prabhat\Desktop\lvdm.pwn(1261) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.