SA-MP Forums Archive
/vips help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /vips help (/showthread.php?tid=608144)



/vips help - LifeRah - 28.05.2016

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.


Re: /vips help - Amunra - 28.05.2016

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


Re: /vips help - LifeRah - 28.05.2016

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.


Re: /vips help - ]Rafaellos[ - 28.05.2016

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;
}