sex not showing? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sex not showing? (
/showthread.php?tid=582111)
sex not showing? -
alexanderjb918 - 17.07.2015
Код:
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
Re: sex not showing? -
nezo2001 - 17.07.2015
PHP код:
new string[128];
new gender[128];
switch(PlayerData[PlayerData[extraid][pMDCPlayer]][pGender])
{
//Your gender number, Ex 1 for male
case number: gender = "//Male or Female";
//Second number for the second gender
case ReplaceWithNumer: gender = "//Male or Female";
}
format(string, sizeof(string),"Sex: %s",gender);
SendClientMessage(extraid, COLOR_WHITE, string);
Re: sex not showing? -
kristo - 18.07.2015
pawn Код:
SendClientMessageEx(extraid, COLOR_WHITE, "Sex: %s", (PlayerData[PlayerData[extraid][pMDCPlayer]][pGender] == 2) ? ("Female") : ("Male"));
You were missing two brackets.