Help! with newkeys
#1

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?

Reply
#2

What errors are you getting?
Reply
#3

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

Reply
#4

Can anybody help, please!


I will be here for the next hour, so please help...
Reply
#5

Help....
Reply
#6

Hey,

Seems like you are having some trouble with the KEY_ACTION setup.

You can check this out for Reference
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)