19.01.2011, 17:30
(
Последний раз редактировалось ViperSniper; 19.01.2011 в 17:33.
Причина: Double post sorry!
)
I looked through Wiki and found strcmp, I'm about to test it to see if its correct for what I'm wanting..
Correct or Incorrect.. 
Edit: Oops sorry..
Edit (2):
Ok, that kind of works, but i can do /gender femaleanything /gender maleanything
Код:
COMMAND:gender(playerid,params[])
{
if(!strcmp(params, "female", true, 6) || !strcmp(params, "male", true, 4))
{
SetPVarString(playerid,"Gender",params);
new strz[38];
format(strz,sizeof(strz), "Your gender is now set to: %s.",params);
SendClientMessage(playerid, blue, strz);
} else {
SendClientMessage(playerid, blue, "INVALID GENDER, Male or Female.");
}
return 1;
}

Edit: Oops sorry..
Edit (2):
Ok, that kind of works, but i can do /gender femaleanything /gender maleanything

