VIP errors'
#1

Okay, so I get these errors:

Код:
C:\Users\****\Desktop\SA-MP gamemodes\HSRP Script\gamemodes\IRP.pwn(47273) : error 017: undefined symbol "string"
C:\Users\****\Desktop\SA-MP gamemodes\HSRP Script\gamemodes\IRP.pwn(47276) : error 017: undefined symbol "string"
C:\Users\****\Desktop\SA-MP gamemodes\HSRP Script\gamemodes\IRP.pwn(47277) : warning 209: function "cmd_v" should return a value
C:\Users\****\Desktop\SA-MP gamemodes\HSRP Script\gamemodes\IRP.pwn(47278) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
}
Reply
#2

Show me the full code for line 47270- 47278
Reply
#3

Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
Show me the full code for line 47270- 47278
pawn Код:
}
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
Reply
#4

Quote:
Originally Posted by James Bob
Посмотреть сообщение
pawn Код:
}
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
I mean the code for the command for VIP chat, show me that part. Sorry, my bad for asking the wrong line
Reply
#5

pawn Код:
CMD:v(playerid, params[])
{
    if(PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new string[128];
        if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /v(ip chat) [message]");

        if(VIPTimer[playerid] > 0)
        {
            format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", VIPTimer[playerid]);
            SendClientMessageEx(playerid, COLOR_GREY, string);
            return 1;
        }
        if(PlayerInfo[playerid][pToggedVIPChat] == 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You have the channel toggled, /togvip to re-enable!");
            return 1;
        }
        if(PlayerInfo[playerid][pVMuted] > 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You are muted from the VIP chat channel.");
            return 1;
        }
        if(PlayerInfo[playerid][pDonateRank] == 1)
        {
            format(string, sizeof(string), "** Bronze VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 2)
        {
            format(string, sizeof(string), "** Silver VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 3)
        {
            format(string, sizeof(string), "** Gold VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 4)
        {
            format(string, sizeof(string), "** Platinum VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 5)
        {
            format(string, sizeof(string), "** VIP Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pDonateRank] == 6)
        {
            format(string, sizeof(string), "** Special Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string, sizeof(string), "** Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string, sizeof(string), "** General Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string, sizeof(string), "** Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string, sizeof(string), "** Head Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }
        /*else if(PlayerInfo[playerid][pAdmin] == 99997)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }*/

        else if(PlayerInfo[playerid][pAdmin] == 99998)
        {
            format(string, sizeof(string), "** Server Co-Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 99999)
        {
            format(string, sizeof(string), "** Server Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 100000)

            format(string, sizeof(string), "** Server Scripter %s: %s", GetPlayerNameEx(playerid), params);
        }
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
}
Reply
#6

pawn Код:
CMD:v(playerid, params[])
{
    new string[128];
    if(PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new string[128];
        if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /v(ip chat) [message]");

        if(VIPTimer[playerid] > 0)
        {
            format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", VIPTimer[playerid]);
            SendClientMessageEx(playerid, COLOR_GREY, string);
            return 1;
        }
        if(PlayerInfo[playerid][pToggedVIPChat] == 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You have the channel toggled, /togvip to re-enable!");
            return 1;
        }
        if(PlayerInfo[playerid][pVMuted] > 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You are muted from the VIP chat channel.");
            return 1;
        }
        if(PlayerInfo[playerid][pDonateRank] == 1)
        {
            format(string, sizeof(string), "** Bronze VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 2)
        {
            format(string, sizeof(string), "** Silver VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 3)
        {
            format(string, sizeof(string), "** Gold VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 4)
        {
            format(string, sizeof(string), "** Platinum VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 5)
        {
            format(string, sizeof(string), "** VIP Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pDonateRank] == 6)
        {
            format(string, sizeof(string), "** Special Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string, sizeof(string), "** Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string, sizeof(string), "** General Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string, sizeof(string), "** Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string, sizeof(string), "** Head Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }
        /*else if(PlayerInfo[playerid][pAdmin] == 99997)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }*/

        else if(PlayerInfo[playerid][pAdmin] == 99998)
        {
            format(string, sizeof(string), "** Server Co-Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 99999)
        {
            format(string, sizeof(string), "** Server Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 100000)

            format(string, sizeof(string), "** Server Scripter %s: %s", GetPlayerNameEx(playerid), params);
        }
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
}
Reply
#7

pawn Код:
Try this, Hope it works
CMD:v(playerid, params[])
{
    new string[128]; //I've just put a string here
    if(PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
       
        if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /v(ip chat) [message]");

        if(VIPTimer[playerid] > 0)
        {
            format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", VIPTimer[playerid]);
            SendClientMessageEx(playerid, COLOR_GREY, string);
            return 1;
        }
        if(PlayerInfo[playerid][pToggedVIPChat] == 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You have the channel toggled, /togvip to re-enable!");
            return 1;
        }
        if(PlayerInfo[playerid][pVMuted] > 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You are muted from the VIP chat channel.");
            return 1;
        }
        if(PlayerInfo[playerid][pDonateRank] == 1)
        {
            format(string, sizeof(string), "** Bronze VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 2)
        {
            format(string, sizeof(string), "** Silver VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 3)
        {
            format(string, sizeof(string), "** Gold VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 4)
        {
            format(string, sizeof(string), "** Platinum VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 5)
        {
            format(string, sizeof(string), "** VIP Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pDonateRank] == 6)
        {
            format(string, sizeof(string), "** Special Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string, sizeof(string), "** Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string, sizeof(string), "** General Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string, sizeof(string), "** Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string, sizeof(string), "** Head Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }
        /*else if(PlayerInfo[playerid][pAdmin] == 99997)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }*/

        else if(PlayerInfo[playerid][pAdmin] == 99998)
        {
            format(string, sizeof(string), "** Server Co-Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 99999)
        {
            format(string, sizeof(string), "** Server Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 100000)

            format(string, sizeof(string), "** Server Scripter %s: %s", GetPlayerNameEx(playerid), params);
        }
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
}
Reply
#8

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
CMD:v(playerid, params[])
{
    new string[128];
    if(PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new string[128];
        if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /v(ip chat) [message]");

        if(VIPTimer[playerid] > 0)
        {
            format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", VIPTimer[playerid]);
            SendClientMessageEx(playerid, COLOR_GREY, string);
            return 1;
        }
        if(PlayerInfo[playerid][pToggedVIPChat] == 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You have the channel toggled, /togvip to re-enable!");
            return 1;
        }
        if(PlayerInfo[playerid][pVMuted] > 0)
        {
            SendClientMessageEx(playerid, COLOR_GREY, "You are muted from the VIP chat channel.");
            return 1;
        }
        if(PlayerInfo[playerid][pDonateRank] == 1)
        {
            format(string, sizeof(string), "** Bronze VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 2)
        {
            format(string, sizeof(string), "** Silver VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 3)
        {
            format(string, sizeof(string), "** Gold VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 4)
        {
            format(string, sizeof(string), "** Platinum VIP %s: %s", GetPlayerNameEx(playerid), params);
            VIPTimer[playerid] = 5;
        }
        else if(PlayerInfo[playerid][pDonateRank] == 5)
        {
            format(string, sizeof(string), "** VIP Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pDonateRank] == 6)
        {
            format(string, sizeof(string), "** Special Moderator %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string, sizeof(string), "** Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string, sizeof(string), "** General Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string, sizeof(string), "** Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        if(PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string, sizeof(string), "** Head Admin %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }
        /*else if(PlayerInfo[playerid][pAdmin] == 99997)
        {
            format(string, sizeof(string), "** Server Manager %s: %s", GetPlayerNameEx(playerid), params);
        }*/

        else if(PlayerInfo[playerid][pAdmin] == 99998)
        {
            format(string, sizeof(string), "** Server Co-Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 99999)
        {
            format(string, sizeof(string), "** Server Owner %s: %s", GetPlayerNameEx(playerid), params);
        }
        else if(PlayerInfo[playerid][pAdmin] == 100000)

            format(string, sizeof(string), "** Server Scripter %s: %s", GetPlayerNameEx(playerid), params);
        }
        if (PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 2)
        {
            SendVIPMessage(COLOR_VIP, string);
        }

        Log("logs/vipchat.log", string);
    }
    return 1;
}
Код:
C:\Users\****\Desktop\SA-MP gamemodes\HSRP Script\gamemodes\IRP.pwn(47279) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#9

post the line 47279
Reply
#10

Quote:
Originally Posted by CBCandyBoy
Посмотреть сообщение
post the line 47279
pawn Код:
return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)