Friends / Name Tag System
#1

I''ve made this function so that if I write "My name is Knappen", it checks my player name from a MySQL database, and then it's supposed to add my name into all the player's mysql tables, but only the players nearby me. My only problem is this:


pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(strfind(result, NameTagInfo[playerid][nFirstName], true) != -1 || strfind(result, NameTagInfo[playerid][nLastName], true) != -1)
                {
                    if(IsPlayerNearPlayer(i, playerid, 5))
                    {
                        if(NameTagInfo[i][nFriend1] == 0 && i != playerid)
                        {
                            SendClientMessage(i, COLOR_YELLOW, "It Worked");
                            return 1;
                        }
                }
            }
I started scripting not that long ago, and I've been studying up on loops lately, to understand how to use it. But as you see, I can't get it to work.

I would be very grateful if anyone could help me. If you need more information about the script/function, don't hesitate to ask.
Reply


Messages In This Thread
Friends / Name Tag System - by Knappen - 19.10.2011, 12:10
Re: Friends / Name Tag System - by Knappen - 19.10.2011, 19:45
Re: Friends / Name Tag System - by Knappen - 20.10.2011, 06:43
Re: Friends / Name Tag System - by nilanjay - 20.10.2011, 06:54
Re: Friends / Name Tag System - by Knappen - 20.10.2011, 21:23
Re: Friends / Name Tag System - by =WoR=Varth - 20.10.2011, 21:57
Re: Friends / Name Tag System - by Knappen - 20.10.2011, 22:11

Forum Jump:


Users browsing this thread: 2 Guest(s)