new coordsstring[1024];
format(coordsstring, sizeof(coordsstring), "~n~%sLevel:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d]~n~", level,atext,age,cash,account,pnumber);
format(coordsstring, sizeof(coordsstring), "~n~%sPlayingHours:[%d] Job:[%s] Respect:[%d/%d] DonateRank:[%s]~n~", ptime,jtext,exp,expamount,drank);
format(coordsstring, sizeof(coordsstring), "~n~%sDrugs:[%d] Materials:[%d] Organisation:[%s] Rank:[%s]~n~",drugs,mats,ftext,rtext);
TextDrawSetString(Statistika, coordsstring);
TextDrawShowForPlayer(playerid, Statistika);
//SendClientMessage(playerid, COLOR_WHITE,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "~n~%sHouse key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------------------------------------");
}
}
new coordsstring[1024];
format(coordsstring, sizeof(coordsstring), "~n~%sLevel:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d]~n~", level,atext,age,cash,account,pnumber);
format(coordsstring, sizeof(coordsstring), "%s~n~%sPlayingHours:[%d] Job:[%s] Respect:[%d/%d] DonateRank:[%s]~n~", coordsstring, ptime,jtext,exp,expamount,drank);
format(coordsstring, sizeof(coordsstring), "%s~n~%sDrugs:[%d] Materials:[%d] Organisation:[%s] Rank:[%s]~n~", coordsstring, drugs,mats,ftext,rtext);
TextDrawSetString(Statistika, coordsstring);
TextDrawShowForPlayer(playerid, Statistika);
//SendClientMessage(playerid, COLOR_WHITE,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "~n~%sHouse key [%d] Business key [%d] Veh1 [%d] Veh2 [%d] Veh3 [%d] local[%d]", housekey,bizkey,carkey,carkey2,carkey3,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------------------------------------");
}
}
Originally Posted by Killaz/s0nic
And as you see in the screen shot you posted, there is a blank and a star where the [ & ] should be..the best way is to use (%s) instead of your [%s] for all the brackets, and from what i remember the parentheses look like brackets ig. Hope this helped a little.
|