01.03.2008, 07:27
Name, Is nothing else than a string, now, do you compare strings by 'if(1 'equal' 1)'?
Using strcmp for this, is the only way, which you will use.
Using strcmp for this, is the only way, which you will use.
pawn Код:
new Data[24]; GetPlayerName(playerid, Data, 24);
if(strcmp(Data, "batman", true) == 0)
{
//His name is batman, do what ever you want.
return true;
}
else // his name isnt batman, do what ever you want.