Jump to content
  • 0

Ajutor dau +1


AndreiB

Question

CMD:vipneon(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(GetPlayerState(playerid) == 2)
        {
            if(personalcar[0][playerid] == vehicleid || personalcar[1][playerid] == vehicleid || personalcar[2][playerid] == vehicleid || personalcar[3][playerid] == vehicleid || personalcar[4][playerid] == vehicleid || personalcar[5][playerid] == vehicleid)
            {
                if(CarInfo[OwnedVeh(vehicleid)][cVipVehicle] == 1)
                {
                    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel");
                }
                else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este VIP");
            }
            else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este al tau!");
        }
        else return SCM(playerid, COLOR_LIGHTRED, "Trebuei sa fii soferul vehiculului.");
    }
    else return SCM(playerid, COLOR_LIGHTRED, "Nu te aflii intr-un vehicul");
    return 1;
}

Comanda si da erorile astea

C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ";", but found ")"
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 029: invalid expression, assumed zero
C:\Users\Eroare\Desktop\RPG.BIGZONE.RO\gamemodes\bigzone.pwn(32509) : fatal error 107: too many error messages on one line

linia este urmatoarea 

 ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel");

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Acum 49 minute, AndreiB a spus:

CMD:vipneon(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(GetPlayerState(playerid) == 2)
        {
            if(personalcar[0][playerid] == vehicleid || personalcar[1][playerid] == vehicleid || personalcar[2][playerid] == vehicleid || personalcar[3][playerid] == vehicleid || personalcar[4][playerid] == vehicleid || personalcar[5][playerid] == vehicleid)
            {
                if(CarInfo[OwnedVeh(vehicleid)][cVipVehicle] == 1)
                {
                    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel");
                }
                else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este VIP");
            }
            else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este al tau!");
        }
        else return SCM(playerid, COLOR_LIGHTRED, "Trebuei sa fii soferul vehiculului.");
    }
    else return SCM(playerid, COLOR_LIGHTRED, "Nu te aflii intr-un vehicul");
    return 1;
}

Comanda si da erorile astea

C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ";", but found ")"
C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 029: invalid expression, assumed zero
C:\Users\Eroare\Desktop\RPG.BIGZONE.RO\gamemodes\bigzone.pwn(32509) : fatal error 107: too many error messages on one line

linia este urmatoarea 

 ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel");

Comanda functioneaza, problema cred ca este in alta parte :)

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.