strfind isn't working correctly.
#1

Evening.
I want to check if the strings from the master account are 'empty'.

Код:
					if(strfind(MasterInfo[playerid][mName], "Empty", true) != -1 || strfind(MasterInfo[playerid][mName2], "Empty", true) != -1 || strfind(MasterInfo[playerid][mName3], "Empty", true) != -1)
					{
					SendClientMessage(playerid, COLOR_YELLOW, "INFO: You don't have any characters yet, please create a new one by clicking on the arrow.");
                    SendClientMessage(playerid, COLOR_YELLOW, "INFO: For security reasons characters can't be deleted.");
					}
					else
					{
					SendClientMessage(playerid, COLOR_YELLOW, "INFO: Please select your character or create a new one by clicking on the arrow.");
                    SendClientMessage(playerid, COLOR_YELLOW, "INFO: For security reasons characters can't be deleted.");
					}
Still, the strings are set to 'Empty', but it still shows the second message.
Reply


Messages In This Thread
strfind isn't working correctly. - by faff - 20.10.2016, 19:32
Re: strfind isn't working correctly. - by Konstantinos - 20.10.2016, 19:36
Re: strfind isn't working correctly. - by faff - 20.10.2016, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)