Name Comparing stock - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Name Comparing stock (
/showthread.php?tid=143923)
Name Comparing stock -
IamNotKoolllll - 24.04.2010
Well i just made this stock to compair names i dont know if it works but you can tell me ^_^
pawn Код:
stock CompareName(playerid, name2[])
{
new
name[ MAX_PLAYER_NAME ];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, name2, false, MAX_PLAYER_NAME)) return true;
return false;
}
Credits:
//exora for fixing it
IamNotKoollll
Re: Name Comparing stock -
Nero_3D - 24.04.2010
No
Re: Name Comparing stock -
woot - 24.04.2010
pawn Код:
stock CompareName(playerid, name2[])
{
new
name[ MAX_PLAYER_NAME ];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, name2, false, MAX_PLAYER_NAME)) return true;
return false;
}
PS: Use [ pawn ] [ /pawn ] tags.
Re: Name Comparing stock -
IamNotKoolllll - 24.04.2010
Quote:
Originally Posted by ♣ Joker ♠
No 
|
u make me cry