showing stats help
#1

Helloo, my stats showing isnt working right, it just wont show nothing on there
defined like dat

Код:
		new iftext[128];
		if(PlayerInfo[ playerid ][ Member ] == -255) { iftext = "None"; }
		else { iftext = OrgInfo[fID][fName]; }
and showing like dat
Код:
 		format(string, sizeof(string), "Illegal Faction: %s",iftext);
		SendClientMessage(playerid, COLOR_GRAD2, string);
what wrong with that?
Reply
#2

you dont assing strings ! you need to format them !
pawn Код:
new iftext[128];
if(PlayerInfo[ playerid ][ Member ] == -255) format(iftext,sizeof iftext,"None");
else format(iftext,sizeof iftext,"%s",OrgInfo[fID][fName]);
Reply
#3

It is totally possible to assign a string directly, but only if it concerns a single dimensional array.
pawn Код:
iftext = "None";
is perfectly valid Pawn code and works perfectly.
Reply
#4

yes true, but adding multiple string is not possible (i think ?)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)