OnPlayerKey
#1

PHP Code:
if(newkeys == KEY_YES)
    {
        
printf("Passed key");
        new 
a;
        if(
IsPlayerInRangeOfPoint(playerid2.0AtmInfo[a][aPosX], AtmInfo[a][aPosY], AtmInfo[a][aPosZ]))
        {
            
printf("First passed");
            if(
PlayerInfo[playerid][AtmCard] != 1)
            {
                
ERROR(playerid"You need to purchase Atm Card");
                return 
1;
            }
            
SPD(playeridDIALOG_BANKDIALOG_STYLE_LIST"Bank""Withdraw money\nPut in bank""Select""Leave");
            
printf("Dialog shown");
            return 
1;
        }
    } 
In log it says this

After
printf("Passed key");
nothing gets executed.. It looks like I am not in range of point but I am...

But Nothing after that.. Here is the enum
PHP Code:
#define MAX_ATM        51
#define ATM_OBJECT    2942
enum aInfo
{
    
aID,
    
Float:aPosX,
    
Float:aPosY,
    
Float:aPosZ,
    
Float:aAngle,
    
aInt,
    
aVW,
    
boolAtmExist,
}
new 
AtmInfo[MAX_ATM][aInfo],
Text3D:AtmLabel[MAX_ATM],
AtmObject[MAX_ATM],
Iteratori_ATM<MAX_ATM>; 
Everything is created and loaded as it should be.. I jus don't understand why it won't work..
Reply


Messages In This Thread
OnPlayerKey - by Micko123 - 29.12.2016, 06:17
Re: OnPlayerKey - by Stinged - 29.12.2016, 06:32
Re: OnPlayerKey - by Micko123 - 29.12.2016, 06:34
Re: OnPlayerKey - by RayBiH - 29.12.2016, 07:11
Re: OnPlayerKey - by Micko123 - 29.12.2016, 07:22
Re: OnPlayerKey - by RayBiH - 29.12.2016, 08:24
Re: OnPlayerKey - by Stinged - 29.12.2016, 09:58

Forum Jump:


Users browsing this thread: 2 Guest(s)