pname find doesnt work? - 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: pname find doesnt work? (
/showthread.php?tid=176964)
pname find doesnt work? -
thomas.. - 15.09.2010
pawn Код:
if(strfind(PlayerName,"thomas") != -1)
{
if(strfind(PlayerName,"PWNA") != -1)
{
if(strfind(PlayerName,"Gamer") != -1)
{
so i got this, but when i type in the cmd for the rest of the code, it doesnt work?
also i got
new playername
Re: pname find doesnt work? -
Burridge - 15.09.2010
pawn Код:
new PlayerName[24]; //Max size of a player name is 24 characters long
GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); //Detects the name
Then add your code, it should work. I guess you just forgot to add the GetPlayerName function to it.