if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
error 017: undefined symbol "tmp"
if(pInfo[playerid][TutStep] == 1)
{
if(!strlen(text))
{
SendClientMessage(playerid, COLOR_RED, "What is your Age?");
SendClientMessage(playerid, COLOR_WHITE, "HINT: Allowed age 10 to 35");
return 0;
}
if(strlen(text) != 2)
{
SendClientMessage(playerid, COLOR_RED,"2 Characters Digit only!!!");
return 0;
}
format(string, sizeof(string), "Ok, so you are %d years old", strval(text));
SendClientMessage(playerid, COLOR_YELLOW, string);
dini_IntSet(file, "Age", strval(text));
for(new i = 0; i < 100; i++)
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessage(playerid, COLOR_RED, "What is your Gender?");
SendClientMessage(playerid, COLOR_WHITE, "HINT: Allowed Gender: male and female");
pInfo[playerid][TutStep] = 2;
return 0;
}
if(!IsNumeric(strlen(text)))
error 035: argument type mismatch (argument 1)
new tmp[32];
if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
{
dini_Set(file, "Gender", "Male");
SendClientMessage(playerid, COLOR_YELLOW, "Ok, so you are a male");
return 0;
}
else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
{
dini_Set(file, "Gender", "Female");
SendClientMessage(playerid, COLOR_YELLOW, "Ok, so you are a female");
return 0;
}
!strcmp("male", tmp, true, strlen(tmp)) == 0)
if(strcmp("male", tmp, true, strlen(tmp)) == 0)
if(!IsNumeric(strlen(text)))
replace strlen(text) with text, pawn shows the error cause the function is IsNumeric(const string[]). |