Quote:
Originally Posted by Lynn
You have it defined, just using 2, for both, instead of 1 & 2.
pawn Код:
PlayerInfo[playerid][pSex] = 1;//This is Male. PlayerInfo[playerid]pSex] = 2;//This is Female.
Change
pawn Код:
if(!strcmp("male", tmp, true, 4)) {//Checks to see if the input matches "female" and if it does continues PlayerInfo[playerid][pSex] = strval(text); PlayerInfo[playerid][pSex] = 2; SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a male."); SendClientMessage(playerid,WHITE,"Thank you for filling in the information"); RegistrationStep[playerid] = 3; TogglePlayerControllable(playerid,1);//Unfreezes the player and play resumes return 0; }
to
pawn Код:
if(!strcmp("male", tmp, true, 4)) {//Checks to see if the input matches "Male" and if it does continues PlayerInfo[playerid][pSex] = strval(text); PlayerInfo[playerid][pSex] = 1; SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a male."); SendClientMessage(playerid,WHITE,"Thank you for filling in the information"); RegistrationStep[playerid] = 3; TogglePlayerControllable(playerid,1);//Unfreezes the player and play resumes return 0; }
|
C:\Users\Daniel\SAMP 0.3c Server\gamemodes\Crossfire.pwn(10) : error 010: invalid function or declaration