18.11.2013, 03:42
pawn Код:
switch(PlayerInfo[i][OnDuty])
{
case 0: VipDuty = "Playing!";
case 1: VipDuty = "OnDuty!";
}
format(string,sizeof(string),"Level: %d - %s(ID:%d) | %s | %s\n", PlayerInfo[i][dRank], PlayerName2(i), i, GetRankFromAdmin(i), VipDuty);
pawn Код:
switch(PlayerInfo[i][OnDuty])
{
case 0: format(VipDuty, sizeof(VipDuty), "Level: %d - %s(ID:%d) | %s | Playing\n", PlayerInfo[i][dRank], PlayerName2(i), i, GetRankFromAdmin(i));
case 1: format(VipDuty, sizeof(VipDuty), "Level: %d - %s(ID:%d) | %s | OnDuty\n", PlayerInfo[i][dRank], PlayerName2(i), i, GetRankFromAdmin(i));
}
strcat(string, VipDuty);
More info on strcat: https://sampwiki.blast.hk/wiki/Strcat