Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

onplayerkeystatechange "PRESSED" unexpected token

$
0
0
PHP Code:

// PRESSED(keys)
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0))*!= (%0))

if (
PRESSEDnewkeysKEY_JUMP )) // error line
    
{
        if(
DB[playerid][SuperJumpLevel] == 1)
        {
            
GetPlayerVelocity(playeridF[0], F[1], F[2]);
            
SetPlayerVelocity(playeridF[0]*1.3F[1]*2F[2]+0.1);
            
Message(playeridTYPE_SERVER"Jump recognized.");
        }
    } 

PHP Code:

error 001expected token")"but found "*"
error 029invalid expressionassumed zero 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>