[Help]
#1

nvm..........
Reply
#2

pawn Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
    if(GetPlayerSkin(i) != 0)
    {
        SendClientMessage(i, color, string);
    }
}
Reply
#3

It gives me other error:
rror 017: undefined symbol "i"
Reply
#4

In your function...where in hell do you suppose its going to get 'playerid' from

Quote:

public SendAdminMessage(color, string[])//<-- Function Call
{
if(GetPlayerSkin(i) != 0)//<-- its not going to get 'i' either !
{
SendClientMessage(playerid, color, string); //<-- so you KNOW its not going to have 'PLAYERID' either..
}
}

Perhaps if you tried to loop through all players ... ForEach( or for(new

try searching around for those, and you will find your problem.
Reply
#5

pawn Код:
for(new i;i<MAX_PLAYERS;i++)
    {
        if(GetPlayerSkin(i) != 0)
        {
            SendClientMessage(i, color, string);
        }
    }
Reply
#6

no offense bro... but if you 'Give' these people the answers .. they are NEVER going to learn, they are literally going to copy and paste every little thing, and then royally screw themselves over later on down the run...

a little 'searching' is going to help them 'appreciate' the knowledge.
Reply
#7

Quote:
Originally Posted by Joshua_Turnerz
Посмотреть сообщение
no offense bro... but if you 'Give' these people the answers .. they are NEVER going to learn, they are literally going to copy and paste every little thing, and then royally screw themselves over later on down the run...

a little 'searching' is going to help them 'appreciate' the knowledge.
Not always.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)