error 029: invalid expression, assumed zero & warning 202: number of arguments does not match definition - Patrick - 28.02.2013
Title Says All
The Define
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Code
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)//283
{//284
if(PRESSED(KEY_YES**))//285
{//286
return cmd_sellcar(playerid,"");//287
}/288
return 1;//289
}//290
ERROR
Код:
Line (6285) : error 029: invalid expression, assumed zero
Line (6287) : warning 202: number of arguments does not match definition
Re : error 029: invalid expression, assumed zero & warning 202: number of arguments does not match definition -
yusei - 28.02.2013
hello,
change
if(PRESSED(KEY_YES**))
by
if(PRESSED(KEY_YES))
Re: error 029: invalid expression, assumed zero & warning 202: number of arguments does not match definition - Patrick - 28.02.2013
Warning
pawn Код:
warning 202: number of arguments does not match definition
On This Code
pawn Код:
return cmd_sellcar(playerid,"");
i just followed on samp and read it as they said
[*] Key not defined in SA:MP includes. You must define this yourself or use KEY_HANDBRAKE.
[**] Supported since 0.3d. Not detectable in earlier versions. This key can not be detected when the player is set to specating mode
[***] GROUP_CONTROL_FWD cannot be detected in SA-MP, as it used internally to enter vehicles as passenger. However, the gametext definition still exists.
so i though it going to work. but im having some warnings
Re : error 029: invalid expression, assumed zero & warning 202: number of arguments does not match definition -
yusei - 28.02.2013
return cmd_sellcar(playerid,"1"); No ?
Re: error 029: invalid expression, assumed zero & warning 202: number of arguments does not match definition - Patrick - 28.02.2013
FIXED!