Key fire to remove textdraw -
Glossy42O - 12.04.2015
do i do it like that?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
and under it textdrawdestroy?
Re: Key fire to remove textdraw - Emmet_ - 12.04.2015
Maybe it's just me, but I don't get why everyone uses PRESSED(...) to detect just one key. I've always used this:
And yes.
Re: Key fire to remove textdraw -
Glossy42O - 12.04.2015
just warnings, it compiles but..
PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(542) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(632) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(633) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(634) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(635) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(636) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(637) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(638) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(639) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(640) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(642) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(643) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(644) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(645) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(646) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(647) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(648) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
28 Warnings.
Re: Key fire to remove textdraw -
ilepopivanov - 12.04.2015
if(newkeys == KEY_FIRE)
{
TextDrawHideForPlayer(playerid, textdrawid);
}
or PlayerTextDrawHide(playerid, playertextdrawid); for playertextdraw
Re : Key fire to remove textdraw -
AlexBlack - 12.04.2015
show us : 305 , 381 , 550 lines please
Re: Key fire to remove textdraw -
Glossy42O - 12.04.2015
all of em are loose ind, idc about it, btw when i press FIRE KEY it doesn't remove all..
Re: Key fire to remove textdraw - Emmet_ - 12.04.2015
"newkeys" contains a bit value, you don't use "==" to compare it...
And also show some more code.
Re: Key fire to remove textdraw -
Glossy42O - 12.04.2015
if u want i'll show u ALL of my weapon shop sys textdraw
but for now
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
TextDrawDestroy(Textdraw:0);
TextDrawDestroy(Textdraw:1);
TextDrawDestroy(Textdraw:2);
TextDrawDestroy(Textdraw:3);
TextDrawDestroy(Textdraw:4);
TextDrawDestroy(Textdraw:5);
TextDrawDestroy(Textdraw:6);
TextDrawDestroy(Textdraw:7);
TextDrawDestroy(Textdraw:8);
TextDrawDestroy(Textdraw9[playerid]);
TextDrawDestroy(Textdraw10[playerid]);
TextDrawDestroy(Textdraw11[playerid]);
TextDrawDestroy(Textdraw12[playerid]);
TextDrawDestroy(Textdraw13[playerid]);
TextDrawDestroy(Textdraw14[playerid]);
TextDrawDestroy(Textdraw15[playerid]);
}
return 1;
}