C:\Users\Hash\Desktop\My Stuff\Server\gamemodes\NLRP.pwn(854) : warning 209: function "OnPlayerText" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
else if((strcmp("LC", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LC"))) { PlayerInfo[playerid][pNationality] = 4; ClearChatbox(playerid, 8); SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "Nice, so you are from Liberty City."); SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); ClearChatbox(playerid, 2); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 1; } } } }
try this:
else if((strcmp("LC", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LC"))) { PlayerInfo[playerid][pNationality] = 4; ClearChatbox(playerid, ; SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "Nice, so you are from Liberty City."); SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); ClearChatbox(playerid, 2); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 1; } } } } |
else if((strcmp("LC", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LC"))) { PlayerInfo[playerid][pNationality] = 4; ClearChatbox(playerid, 8); SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "Nice, so you are from Liberty City."); SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------"); ClearChatbox(playerid, 2); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } } } return 1; }