/vips help
#1

hello guys i made this CMD:-
PHP код:
CMD:vips(playeridparams[])
{
    
#pragma unused params
    
new
        
count 0,
        
string[800];
    for(new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i))
        {
            if(
GetPVarInt(playerid"DonateRank") >= 1)
            {
                
format(string500"%s %s [ID:%i]"stringiGetPVarInt(playerid"DonateRank");
                
count++;
            }
        }
    }
    if (
count == 0ShowPlayerDialog(playerid800DIALOG_STYLE_MSGBOX"{F81414}Online V.I.Ps""{00FFEE}No V.I.Ps Online""Close""");
    else 
ShowPlayerDialog(playerid800DIALOG_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 001expected token","but found ";" 
and the line getting error is this:-
PHP код:
Line 74:- format(string500"%s %s [ID:%i]"stringiGetPVarInt(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 030compound statement not closed at the end of file (started at line 85
CMD is this:-
PHP код:
CMD:vhelp(playeridparams[])
{
if(
GetPVarInt(playerid"DonateRank") >= 1)
{
SendClientMessage(playerid0xC2A2DAAA"/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)