if name == 'Ihsan_Cingisiz'
#3

Quote:
Originally Posted by [MWR
Niixie ]
Код:
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(strcmp(pname, "Ihsan_Cingisiz", true))
{
SetPlayerWalkingStyle(playerid, 3);
}
Guess that should work
That will work for everything BUT "Ihsan_Cingisiz". Strcmp returns zero if the strings are the same, so you need to add a ! in front of the strcmp statement, or a == 0 at the end of it.
Reply


Messages In This Thread
if name == 'Ihsan_Cingisiz' - by Ihsan_Cingisiz - 15.06.2010, 14:43
Re: if name == 'Ihsan_Cingisiz' - by Niixie - 15.06.2010, 14:46
Re: if name == 'Ihsan_Cingisiz' - by Kyosaur - 15.06.2010, 14:48
Re: if name == 'Ihsan_Cingisiz' - by randomkid88 - 15.06.2010, 15:15
Re: if name == 'Ihsan_Cingisiz' - by Kyosaur - 15.06.2010, 15:17
Re: if name == 'Ihsan_Cingisiz' - by MastahServers - 15.06.2010, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)