need help with strcmp
#1

ok I have this code here
it is under ondialogresponse
I entered the print code and it seems to work properly
pawn Код:
print(inputtext);//remove
if(strcmp(inputtext,"",true,0)==0)
{
   return SendClientMessage(playerid, RED, "You can't name the map nothing");
}
it does not seem to be working so I went to samp wiki to check the syntax and I notice something it said
Quote:
Important Note: This function also returns 0 if either string is empty.


so how would I check if a string is valid
Reply


Messages In This Thread
need help with strcmp - by horsemeat - 06.06.2013, 01:18
Re: need help with strcmp - by PaulDinam - 06.06.2013, 01:23
Re: need help with strcmp - by Om3n - 06.06.2013, 01:24
Re: need help with strcmp - by horsemeat - 06.06.2013, 01:33

Forum Jump:


Users browsing this thread: 2 Guest(s)