Errors
#1

Hi SA-Mp.ro, I have some errors:
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) //502
pawn Код:
if ( newkeys & KEY_YES ) //507
And the errors:
pawn Код:
(502) : error 029: invalid expression, assumed zero
(502) : error 004: function "OnPlayerKeyStateChange" is not implemented
(507) : error 017: undefined symbol "newkeys"
Help me please !
Reply
#2

Show the whole function please

Have you #include <a-samp> ?
mybe a {} problem
Reply
#3

update your server to a newer version!
or its coming from previous code.
Reply
#4

Update your server and your includes. Also , for last error try defining "newkeys" like

new newkeys
Reply
#5

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
Show the whole function please

Have you #include <a-samp> ?
mybe a {} problem
I have a_samp.
I ha ve the latest includes.
Here is my CODE :
pawn Код:
////////oThers Codes        
}
        if ( P_INFO[ playerid ][ ActionID ] != 9 )
            SetPlayerChatBubble( playerid, lsText, 0xFFFFFFFF, 100.0, 5000 );
        return 0;
}
//----------------------------------------------------------------------------//
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
    new
        VehicleID = GetPlayerVehicleID( playerid )
    ;
    if ( newkeys & KEY_YES )
    {
/////Others Codess///
Ideas?
Reply
#6

Check if you have some parentesis missed
what the frist code begin with?

the frist } ?
Reply
#7

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
Check if you have some parentesis missed
what the frist code begin with?

the frist } ?
No the first is {
But i opened the program Missed Bracket Finder, and all is correct.. (
Reply
#8

DO not trust so much Programs check yourself
Reply
#9

if(newkeys == 65536)
{
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)