[HELP]World
#10

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
whats wrong with that, besides where he has the return 0;
that should be at the end of the callback not in the loop...


and GetPlayerName(playerid) cannot be used like that
1st, I didn't put the return there, he did. 2nd...Yea I know..It's really early here, and I haven't slept all night..

pawn Код:
new name[24];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
            {
                new str[128];
                format(str, sizeof(str), "%s says: %s", name, text);
                SendClientMessage(i, -1, str);
            }
        }
    }
    return 0;
Should work now.
Reply


Messages In This Thread
[HELP]World - by TheBluec0de - 09.06.2012, 15:44
Re: [HELP]World - by Jonny5 - 09.06.2012, 15:49
Re: [HELP]World - by TheBluec0de - 09.06.2012, 15:51
Re: [HELP]World - by JhnzRep - 09.06.2012, 15:53
Re: [HELP]World - by Jonny5 - 09.06.2012, 15:55
Re: [HELP]World - by TheBluec0de - 09.06.2012, 15:55
Re: [HELP]World - by JhnzRep - 09.06.2012, 15:56
Re: [HELP]World - by Jonny5 - 09.06.2012, 15:57
Re: [HELP]World - by TheBluec0de - 09.06.2012, 15:57
Re: [HELP]World - by JhnzRep - 09.06.2012, 16:01

Forum Jump:


Users browsing this thread: 2 Guest(s)