pname find doesnt work?
#1

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
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)