#1

How do you get a new player them appear in chat helpers ?
Reply
#2

Help ?
Reply
#3

You want to know how to let others know whether a player is a helper or not?
You can simply change his name colour. SetPlayerColour();
Reply
#4

I want to give message helpers, when connecting a new player

Exemple:

pawn Код:
if (PlayerInfo[playerid][pReg] == 0)
        {
        format(string2, sizeof(string2), "AdmWarning: Un player nou se inregistreaza",playername2, playersip);
        SendHelperMessage(COLOR_YELLOW2,string2);
        }

But that does not work...
Reply
#5

pawn Код:
//under OnPlayerConnect
if(PlayerInfo[playerid][pReg] == 0)
{
    for(new helperid; helperid < 500; helperid++)
    {
        if (PlayerInfo[helperid][pHelper] == 1)//Change the pHelper to your own enum name
        {
            SendClientMessage(helperid,-1,"AdmWarning: Un player nou se inregistreaza");
        }
    }
}
This will send a message to the helper "AdmWarning: Un player nou se inregistreaza"
Edited again.
Reply
#6

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 017: undefined symbol "string2"
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 017: undefined symbol "string2"
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6162) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#7

I edited the script. Take it.
Btw, you had to create a new var called string2 and I don't know why you are trying to format it. Amyways the new one must be fixed
Reply
#8

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6163) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6163) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6164) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6156) : warning 203: symbol is never used: "string2"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#9

Edited. Take the last one. If that doesn't work then It's the compiler's fault.
Reply
#10

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(6139) : warning 203: symbol is never used: "string2"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          11984 bytes
Code size:          2673968 bytes
Data size:          7256508 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 9958844 bytes

1 Warning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)