ERROR 017: undefined symbol "newkeys" ????
#10

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
You're doing it wrong. Where is 'cmd' defined? Exactly, nowhere in that callback. Commands in that form are used in the OnPlayerCommandText callback and not the OnPlayerKeyStateChange callback as Kevln already implied.

WIKI page for the OnPlayerCommandText: https://sampwiki.blast.hk/wiki/OnPlayerCommandText
WIKI page for the OnPlayerKeyStateChange: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Read about it, then try.
Hmm yes it is under OnPlayerCommandText, i need to copied code under
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)?

Thank's for that help
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)