3 Errors
#1

Quote:

C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(3040) : error 035: argument type mismatch (argument 3)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(3054) : error 035: argument type mismatch (argument 3)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\sas-rp.pwn(306 : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
stock SendDepartmentMessage(colour, string)
{
    #if defined DEBUG
    printf("[Debug] SendDepartmentMessage(Colour, %s);", string);
    #endif
    foreach(Player, i)
    {
        new fac = PlayerInfo[i][pMember];
        if(FactionInfo[fac][FactionType] == 1 || FactionInfo[fac][FactionType] == 2 || FactionInfo[fac][FactionType] == 3)
        {
            SendClientMessage(i, colour, string);//3040
        }
    }
}

stock SendJobMessage(colour, string, job)
{
    #if defined DEBUG
    printf("[Debug] SendFactionMessage(Colour, %s, %d);", string, job);
    #endif
    foreach(Player, i)
    {
        if(PlayerInfo[i][pJob] == job)
        {
            SendClientMessage(i, colour, string);//3054
        }
    }
}

stock SendFactionMessage(colour, string, faction)
{
    #if defined DEBUG
    printf("[Debug] SendFactionMessage(Colour, %s, %d);", string, faction);
    #endif
    foreach(Player, i)
    {
        if(PlayerInfo[i][pMember] == faction)
        {
            SendClientMessage(i, colour, string);//3068
        }
    }
}
Reply
#2

Show us the lines you get the errors on.
Reply
#3

Can you show me the lines please ?
Reply
#4

Added in the comment on the lines.
Reply
#5

string should have this [] so string[]

Код:
stock SendDepartmentMessage(colour, string[])
stock SendJobMessage(colour, string[], job)
stock SendFactionMessage(colour, string[], faction)
Reply
#6

Are you guys blind or green is too bright for you?

error is because the "color" must be a HEX value[0xRRGGBBAA] Or the result above my reply.
Reply
#7

Try:

pawn Код:
stock SendDepartmentMessage(colour, const string[])
Reply
#8

Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
string should have this [] so string[]

Код:
stock SendDepartmentMessage(colour, string[])
stock SendJobMessage(colour, string[], job)
stock SendFactionMessage(colour, string[], faction)
Oh Shite! How did I forget to do that?! Silly me, this can be closed/locked now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)