} else if(RegistrationStep[playerid] == 3) { new idx; tmp = strtok(text, idx); if((strcmp("usa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("usa"))) { PlayerInfo[playerid][pOrigin] = 1; SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from the USA."); SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial."); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } else if((strcmp("europe", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europe"))) { PlayerInfo[playerid][pOrigin] = 2; SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Europe."); SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial."); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } else if((strcmp("asia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("asia"))) { PlayerInfo[playerid][pOrigin] = 3; SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Asia."); SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial."); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } |