This is not changing its special action [Why] :mad:
#3

Quote:
Originally Posted by Hotspot
Посмотреть сообщение
This is not changing its special action to NONE after HANDSUP,
CMD:handsup(playerid, params[])
{
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP);
}
return 1;
}
CMD:handsdown(playerid, params[])
{
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NON E);
}
return 1;
}

why is that help me fast guys
Optimized code:
PHP код:
CMD:handsup(playeridparams[])
{
     if (
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE) {
           
SetPlayerSpecialAction(playeridSPECIAL_ACTION_HANDSUP);
     } else if (
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP) {
           
SetPlayerSpecialAction(playeridSPECIAL_ACTION_NONE);
     }
     return 
1;

Reply


Messages In This Thread
This is not changing its special action [Why] :mad: - by Hotspot - 29.08.2015, 18:48
Re: This is not changing its special action [Why] :mad: - by YoussefHammad - 29.08.2015, 18:54
Re: This is not changing its special action [Why] :mad: - by Logofero - 29.08.2015, 19:18
Re: This is not changing its special action [Why] :mad: - by Hotspot - 31.08.2015, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)