How to do a command with Key? zcmd
#6

Quote:
Originally Posted by appleomax
Посмотреть сообщение
I think it can't execute command like that
Код:
  if(newkeys & YOUR_KEY) 
    { 
        OnPlayerCommandText("/refuel"); 
    }
You need to type the code here from the command

Код:
if((newkeys & YOUR_KEY) && !(oldkeys & YOUR_KEY))
{
        //Code here
	return 1;
}
this what i put
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if((
newkeys 262144) && !(oldkeys 262144))
    {
        
CMD:flash(playerid,params[])
    }
    return 
1;

with out no cmd on it will work perfect but when i add the cmd
PHP код:
CMD:flash(playerid,params[]) 
give me this

PHP код:
C:\Users\yahaira\Desktop\CNR 0.3X\gamemodes\1.2.pwn(1656) : error 029invalid expressionassumed zero
C
:\Users\yahaira\Desktop\CNR 0.3X\gamemodes\1.2.pwn(1656) : error 017undefined symbol "params"
C:\Users\yahaira\Desktop\CNR 0.3X\gamemodes\1.2.pwn(1656) : error 029invalid expressionassumed zero
C
:\Users\yahaira\Desktop\CNR 0.3X\gamemodes\1.2.pwn(1656) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply


Messages In This Thread
How to do a command with Key? zcmd - by UserName31 - 01.08.2013, 06:08
AW: How to do a command with Key? zcmd - by CutX - 01.08.2013, 06:42
Re: AW: How to do a command with Key? zcmd - by UserName31 - 01.08.2013, 06:49
AW: How to do a command with Key? zcmd - by CutX - 01.08.2013, 06:50
Re: How to do a command with Key? zcmd - by appleomax - 01.08.2013, 06:53
Re: How to do a command with Key? zcmd - by UserName31 - 01.08.2013, 17:08
Re: How to do a command with Key? zcmd - by Yashas - 01.08.2013, 17:15
Re: How to do a command with Key? zcmd - by RedJohn - 01.08.2013, 17:19
Re: How to do a command with Key? zcmd - by Yashas - 01.08.2013, 17:21
Re: How to do a command with Key? zcmd - by UserName31 - 01.08.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)