V.I.P Chat Problem
#1

pawn Код:
// I dont post the full code..
public OnPlayerConnect(playerid)
{
    VipLogged[playerid]=0;

    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    VipLogged[playerid]=0;
    return 1;
}

public OnPlayerText(playerid, text[])
{
    if(text[0] == '$' && VipLogged[playerid] == 1 {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"V.I.P Chat: %s: %s",string,text[1]); MessageToVips(green,string);
        return 0;
    }

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(vlogin,6,cmdtext);
    dcmd(vtune,5,cmdtext);
    dcmd(vmyip,5,cmdtext);
    dcmd(vinterior,9,cmdtext);
    dcmd(vfight,6,cmdtext);
    if (strcmp("/night", cmdtext, true, 10) == 0)
    if(VipLogged[playerid] == 1)
    {
        SetPlayerTime(playerid, 0,0);
        SendClientMessage(playerid, COLOR_RED, "Your Time Has Been Succesfully changed.");
        return 1;
    }
    if (strcmp("/morning", cmdtext, true, 10) == 0)
    if(VipLogged[playerid] == 1)
    {
        SetPlayerTime(playerid, 7,1);
        SendClientMessage(playerid, COLOR_RED, "Your time has been succesfully changed.");
        return 1;
}

and

public MessageToVips(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1) VipLogged[playerid] == 1) SendClientMessage(i, color, string);
    }
    return 1;
}
And im getting those errors
pawn Код:
C:\Users\Matthew\Desktop\vip.pwn(67) : warning 212: possibly unintended bitwise operation
C:\Users\Matthew\Desktop\vip.pwn(67) : error 029: invalid expression, assumed zero
C:\Users\Matthew\Desktop\vip.pwn(69) : error 004: function "MessageToVips" is not implemented
C:\Users\Matthew\Desktop\vip.pwn(73) : error 029: invalid expression, assumed zero
C:\Users\Matthew\Desktop\vip.pwn(73) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Matthew\Desktop\vip.pwn(75) : error 017: undefined symbol "cmdtext"
C:\Users\Matthew\Desktop\vip.pwn(75) : error 029: invalid expression, assumed zero
C:\Users\Matthew\Desktop\vip.pwn(75) : warning 215: expression has no effect
C:\Users\Matthew\Desktop\vip.pwn(75) : error 001: expected token: ";", but found "]"
C:\Users\Matthew\Desktop\vip.pwn(75) : fatal error 107: too many error messages on one line

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


8 Errors.
Edit : The Commands Working fine, But i'll try to add a VIP chat but i got that errors
Reply


Messages In This Thread
V.I.P Chat Problem - by matthewdriftking - 17.08.2010, 05:59
Re: V.I.P Chat Problem - by matthewdriftking - 17.08.2010, 06:56
Re: V.I.P Chat Problem - by matthewdriftking - 17.08.2010, 09:30
Re: V.I.P Chat Problem - by matthewdriftking - 19.08.2010, 05:47
Re: V.I.P Chat Problem - by Mystique - 19.08.2010, 07:32
Re: V.I.P Chat Problem - by matthewdriftking - 19.08.2010, 07:52
Re: V.I.P Chat Problem - by DarkPower - 19.08.2010, 09:14
Re: V.I.P Chat Problem - by r0b - 19.08.2010, 09:31
Re: V.I.P Chat Problem - by Dark_Kostas - 19.08.2010, 09:42
Re: V.I.P Chat Problem - by matthewdriftking - 19.08.2010, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)