(HELP) Female spawn - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (HELP) Female spawn (
/showthread.php?tid=270697)
(HELP) Female spawn -
spaty2 - 21.07.2011
Hey, i have it like this, i can't see any problem and if i do female i just spawn as male ...
pawn Code:
}
else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
{
PlayerInfo[playerid][pSex] = 2;
ClearChatbox(playerid, 8);
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, "Ok, so you are a Female.");
SendClientMessage(playerid, COLOR_WHITE, "2. What is your birthdate? (Use dd/mm/yyyy)");
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
ClearChatbox(playerid, 2);
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, femaleskin);
SetPlayerSkin(playerid, femaleskin);
PlayerInfo[playerid][pChar] = femaleskin;
RegistrationStep[playerid] = 2;
return 0;
Re: (HELP) Female spawn -
spaty2 - 21.07.2011
And when it is Male, people sometimes random spawn like Female skin...
Re: (HELP) Female spawn -
MadeMan - 21.07.2011
pawn Code:
...
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, CivFemalePeds[femaleskin]);
PlayerInfo[playerid][pChar] = CivFemalePeds[femaleskin];
...
Do the same changes with male skins.
Re: (HELP) Female spawn -
spaty2 - 21.07.2011
pawn Code:
error 035: argument type mismatch (argument 2)
error 006: must be assigned to an array
error 035: argument type mismatch (argument 2)
error 006: must be assigned to an array
Re: (HELP) Female spawn -
MadeMan - 21.07.2011
pawn Code:
...
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, CivFemalePeds[femaleskin][0]);
PlayerInfo[playerid][pChar] = CivFemalePeds[femaleskin][0];
...
Re: (HELP) Female spawn -
spaty2 - 21.07.2011
Works, thx ^^