What's problem with this?
#7

i think i had it wrong.. what about it now?
I don't know what these error's means...
pawn Код:
new
    SuperJumpEnabled[MAX_PLAYERS];
    Float:pX, //208
    Float:pY,
    Float:pZ,
    IsJumping[MAX_PLAYERS];
forward IsJumping(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(SuperJumpEnabled[playerid]) = 1; //215
    if(newkeys == KEY_JUMP && !IsJumping[playerid]); //216
    {
        IsJumping[playerid]=1;
        GetPlayerVelocity(playerid,pX,pY,pZ);
        SetPlayerVelocity(playerid,pX,pY,pZ+0.4);
        SetTimerEx("IsJumping",2500,false,"d",playerid);
    else {
         SuperJumpEnabled[playerid] = 0;
         SendClientMessage(playerid, COLOR_TEXT, "[System]:Super Jump is Disabled");
    }
    return 1;
}
public IsJumping(playerid)
{
    IsJumping[playerid]=0;
}
Код:
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(208) : error 010: invalid function or declaration
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(215) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(215) : warning 215: expression has no effect
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : error 028: invalid subscript (not an array or too many subscripts): "IsJumping"
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : warning 215: expression has no effect
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : error 001: expected token: ";", but found "]"
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\PAWN\gamemodes\Crysis.pwn(216) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
What's problem with this? - by Rudy_ - 22.04.2012, 13:06
Re: What's problem with this? - by RollTi - 22.04.2012, 13:09
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:09
Re: What's problem with this? - by Scripter12345 - 22.04.2012, 13:23
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:23
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:26
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:31
Re: What's problem with this? - by JoBullet - 22.04.2012, 13:33
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:40
Re: What's problem with this? - by [KHK]Khalid - 22.04.2012, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)