String Problem
#1

How i can dothis?

if(STRING_1 != STRING_2)
{
return 1;
}


Error:
array must be indexed

EDIT:
Strcmp

Thanks.
Reply
#2

Can you show me both strings?
Reply
#3

Use strcmp to compare if two strings are the same.
pawn Код:
if( !strcmp( STRING_1, STRING_2 ) )
{
    // It's the same!
}
else
{
    // It's not the same.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)