[Ajuda] BUG ONPLAYERKEY
#1

Eu Aperto 'F' Em Qlqer Lugar abre o dialog '-'

PHP код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(
newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        if(!
IsPlayerInRangeOfPoint(3playerid756.2317,-1356.3861,13.5141))
        {
          new 
MEGAString[2500];
          
MEGAString[0]=EOS;
          
strcat(MEGAString"Equipamentos »»\n");
          
strcat(MEGAString"Sair »»\n");
          
ShowPlayerDialog(playeridDIALOG_MENUDIALOG_STYLE_LIST"Menu Organizacao"MEGAString"Selecionar""Sair");
        }
    }
    return 
1;

Reply
#2

PHP код:
if(!IsPlayerInRangeOfPoint(3playerid756.2317,-1356.3861,13.5141)) 
! -> Negaзгo.

PHP код:
if( IsPlayerInRangeOfPoint(playerid3756.2317,-1356.3861,13.5141) ) 
Vocк se equivocou na ordem dos parвmetros tambйm ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)