23.08.2016, 22:57
Thanks worked
Textdraw shows only 1 name
the first one
Textdraw shows only 1 name
the first one
Код:
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(playerid, "robbingtime", GetPVarInt(playerid, "robbingtime") + 1 ); new tst[500]; format(tst,sizeof(tst),"Robbers:~n~%s~n~%s",tst,RPName(i)); TextDrawSetString(robbTDD1[playerid],tst); TextDrawShowForPlayer(i,robbTDD1[playerid]); }