23.08.2016, 23:01
Try this
PHP код:
for(new i; i < MAX_PLAYERS; i++)
{
new tmpid = IsPlayerInBiz(playerid), tmpf[80];
format(tmpf, sizeof(tmpf), "%s.txt", biz[tmpid][bizname]);
if(!IsPlayerConnected(i)) continue;
if(!IsPlayerInRangeOfPoint(i, 20.0, rPos[0], rPos[1], rPos[2])) continue;
if(PlayerInfo[i][playerteam] != PlayerInfo[playerid][playerteam]) continue;
new cashrobbing = dini_Int(tmpf,"bizcash")/ 5;
SetPVarInt(i, "robbingtime", GetPVarInt(i, "robbingtime") + 1 );
new tst[500];
format(tst,sizeof(tst),"Robbers:~n~%s~n~%s",tst,RPName(i));
TextDrawSetString(robbTDD1[i],tst);
TextDrawShowForPlayer(i,robbTDD1[i]);
}