ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. (
/showthread.php?tid=265067)
ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. -
Davz*|*Criss - 29.06.2011
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.
Re: ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. -
Vince - 29.06.2011
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.
Re: ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. -
Davz*|*Criss - 29.06.2011
Still Same error.
Re: ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. -
Rafa - 29.06.2011
vince can u explain me what is doing this z + 5

:/
i stop scripting pawno 5 mounts.. :/
Re: ONLY 1 ERROR ITS VERY SIMPLE JUST CLICK PLEASE. -
VivianKris - 29.06.2011
you fogot GetPlayerPos