/vips help
#1

hello guys i made this CMD:-
PHP код:
CMD:vips(playerid, params[])
{
    
#pragma unused params
    
new
        
count = 0,
        
string[800];
    for(new 
i = 0; i < MAX_PLAYERS; i++)
    {
        if (
IsPlayerConnected(i))
        {
            if(
GetPVarInt(playerid, "DonateRank") >= 1)
            {
                
format(string, 500, "%s %s [ID:%i]", string, i, GetPVarInt(playerid, "DonateRank");
                
count++;
            }
        }
    }
    if (
count == 0) ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}Online V.I.Ps", "{00FFEE}No V.I.Ps Online", "Close", "");
    else 
ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}Online V.I.Ps", string, "Close", "");
    return 
1;
} 
but i am getting these errors:-
PHP код:
D:\michaelwcrp\filterscripts\Command(2).pwn(74) : error 001: expected token: ",", but found ";" 
and the line getting error is this:-
PHP код:
Line 74:- format(string, 500, "%s %s [ID:%i]", string, i, GetPVarInt(playerid, "DonateRank"); 
kindly tell me how to fix it.
Reply
#2

GetPVarInt(playerid, "DonateRank");
Forget ")" one again ...
format(string, 500, "%s %s [ID:%i]", string, i, GetPVarInt(playerid, "DonateRank"));
Reply
#3

wait i made one more CMD and got this error:-
PHP код:
D:\michaelwcrp\filterscripts\Command(2).pwn(90) : error 030: compound statement not closed at the end of file (started at line 85) 
CMD is this:-
PHP код:
CMD:vhelp(playerid, params[])
{
if(
GetPVarInt(playerid, "DonateRank") >= 1)
{
SendClientMessage(playerid, 0xC2A2DAAA, "/v ((VIP CHAT)), /vweather ((CUSTOM WEATHER)), /vips ((VIPS ONLINE))");
return 
1;
} 
kindly tell me how to fix it.
Reply
#4

pawn Код:
CMD:vhelp(playerid, params[])
{
    if(GetPVarInt(playerid, "DonateRank") >= 1)
    {
        SendClientMessage(playerid, 0xC2A2DAAA, "/v ((VIP CHAT)), /vweather ((CUSTOM WEATHER)), /vips ((VIPS ONLINE))");
    } //You forgot this
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)