Help! with newkeys - 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: Help! with newkeys (
/showthread.php?tid=72934)
Help! with newkeys -
deathdealer - 11.04.2009
Hello,
i have made a object somewhere (switch) and to use the object i want it to be able to open the door but you need to be at the switch, but i can't get it to work it comes up with 3 errors.. Can someboody help here is the code below.
if(newkeys == KEY_ACTION)
{
if(PlayerToPoint(30, playerid,245.0578,72.4314,1002.5406))
{
MoveObject(lspddoor1, 244.0578,72.4314,1002.5406, 3.5000);
MoveObject(lspddoor2, 247.1478,72.4314,1002.5406, 3.5000);
return 1;
}
}
return 1;
}
Why won't it work?
Re: Help! with newkeys -
ICECOLDKILLAK8 - 11.04.2009
What errors are you getting?
Re: Help! with newkeys -
deathdealer - 11.04.2009
C:\Documents and Settings\Administrator\My Documents\samp02Xserver.win32\samp02Xserver.win32\ gamemodes\123123.pwn(44881) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\samp02Xserver.win32\samp02Xserver.win32\ gamemodes\123123.pwn(44883) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\samp02Xserver.win32\samp02Xserver.win32\ gamemodes\123123.pwn(44887) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\samp02Xserver.win32\samp02Xserver.win32\ gamemodes\123123.pwn(44890) : error 010: invalid function or declaration
Re: Help! with newkeys -
deathdealer - 11.04.2009
Can anybody help, please!
I will be here for the next hour, so please help...
Re: Help! with newkeys -
deathdealer - 12.04.2009
Help....
Re: Help! with newkeys -
RobertGraham - 12.04.2009
Hey,
Seems like you are having some trouble with the KEY_ACTION setup.
You can check this out for Reference