ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE.
#1

Hey guys!

I forget scripting a bit due to i was not scripting for a long time and thought it was really boring without server.

And now i need to create an script.

I got some errors please help me.

Code.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    /* .. Key Up .. */
    if(Fly[playerid] == 1){
    }
     if(PRESSED(KEY_JUMP)) {
        new Float:x,Float:y,Float:z;
        SetPlayerPos(playerid, x, y, z + 5);
        SendClientMessage(playerid, 0x33AA33AA, "Up!");
        }
    }
    return 1;
}
Errors.

pawn Код:
C:\Users\Axme\Desktop\FMTHM.pwn(47) : warning 217: loose indentation
C:\Users\Axme\Desktop\FMTHM.pwn(53) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Thanks very much.

Have a nice day.
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    /* .. Key Up .. */
    if(Fly[playerid] == 1){
    } // <==
     if(PRESSED(KEY_JUMP)) {
        new Float:x,Float:y,Float:z;
        SetPlayerPos(playerid, x, y, z + 5);
        SendClientMessage(playerid, 0x33AA33AA, "Up!");
        }
    }
    return 1;
}
For your information: You cannot detect movement keys (up, down, left, right) with OnPlayerKeyStateChange.
Reply
#3

Still Same error.
Reply
#4

vince can u explain me what is doing this z + 5 :/
i stop scripting pawno 5 mounts.. :/
Reply
#5

you fogot GetPlayerPos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)