22.04.2012, 13:06
pawn Код:
new
SuperJumpEnabled[MAX_PLAYERS] = 0;
Float:pX,
Float:pY,
Float:pZ,
IsJumping[MAX_PLAYERS];
forward IsJmping(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(SuperJumpEnabled[playerid] == 0) {
SuperJumpEnabled[playerid] = 1;
else {
SuperJumpEnabled[playerid] = 0;
SendClientMessage(playerid, COLOR_TEXT, "[System]:Super Jump is Disabled");
if(newkeys == KEY_JUMP && !IsJumping[playerid]);
{
IsJumping[playerid]=1;
GetPlayerVelocity(playerid,pX,pY,pZ);
SetPlayerVelocity(playerid,pX,pY,pZ+0.4);
SetTimerEx("IsJmping",2500,false,"d",playerid);
}
return 1;
}
public IsJmping(playerid)
{
IsJumping[playerid]=0;
}
Код:
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(207) : error 010: invalid function or declaration E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : error 029: invalid expression, assumed zero E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : warning 217: loose indentation E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : error 017: undefined symbol "IsJumping" E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : warning 215: expression has no effect E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : error 001: expected token: ";", but found "]" E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : error 029: invalid expression, assumed zero E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(219) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.