22.12.2009, 19:10
I'm having a problem with setting these three things into a command, could anybody help me?
It would be great! =)
These three =
if(PlayerInfo[playerid][pFaction] == 10)
if(PlayerInfo[playerid][pFaction] == 0)
if(PlayerInfo[playerid][pFaction] == 6)
What i want :
I want these three to get mixed into one sentence so i can easily create new /commands could anybody help with that ? I beg you, please
What i want it to look like.
It would be great! =)
These three =
if(PlayerInfo[playerid][pFaction] == 10)
if(PlayerInfo[playerid][pFaction] == 0)
if(PlayerInfo[playerid][pFaction] == 6)
What i want :
I want these three to get mixed into one sentence so i can easily create new /commands could anybody help with that ? I beg you, please
What i want it to look like.
Код:
if(strcmp(cmd, "/hey", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFaction] == 10) if(PlayerInfo[playerid][pFaction] == 6) if(PlayerInfo[playerid][pFaction] == 0)