sex not showing?
#1

Код:
 SendClientMessageEx(extraid, COLOR_WHITE, "Sex: %s", PlayerData[PlayerData[extraid][pMDCPlayer]][pGender] == 2) ? ("Female") : ("Male");

when i type cmd:check this does not show up it shows up in game but like Sex: and nothing after
Reply
#2

PHP код:
new string[128];
new 
gender[128];
switch(
PlayerData[PlayerData[extraid][pMDCPlayer]][pGender])
{
//Your gender number, Ex 1 for male
case numbergender "//Male or Female";
//Second number for the second gender
case ReplaceWithNumergender "//Male or Female";
}
format(stringsizeof(string),"Sex: %s",gender);
SendClientMessage(extraidCOLOR_WHITEstring); 
Reply
#3

pawn Код:
SendClientMessageEx(extraid, COLOR_WHITE, "Sex: %s", (PlayerData[PlayerData[extraid][pMDCPlayer]][pGender] == 2) ? ("Female") : ("Male"));
You were missing two brackets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)