Jump to content
  • 0

[Problema] - Gamemode


VLM

Question

6 answers to this question

Recommended Posts

  • 0
Acum 50 minute, VLM a spus:

Imi zice invalid expression, assumed zero(eroare).

Cod sursa: https://pastebin.com/vK1TrFXT

Salut, oate sistem-ul tau nu iti permite -1 sau cum ai devinit tu incearca si asa sa vezi ce zice 

if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, CULOATEA_TA_PREFERATA, "Acesta nu este un vehicul VIP.");

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0

error 029: invalid expression, assumed zero

La fel imi da..

18 hours ago, Geani said:

Salut, oate sistem-ul tau nu iti permite -1 sau cum ai devinit tu incearca si asa sa vezi ce zice 


if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, CULOATEA_TA_PREFERATA, "Acesta nu este un vehicul VIP.");

 

 

#retras

Link to comment
Share on other sites

  • 0
Acum 4 ore, VLM a spus:

error 029: invalid expression, assumed zero

La fel imi da..

 

off cultura asta pai unde am scris 

CULOATEA_TA_PREFERATA

pui ce culoare vrei tu  deasta iti da acea eroare 

Incearca asa 


if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, COLOR_GREEN, "Acesta nu este un vehicul VIP.");

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
1 hour ago, Geani said:

off cultura asta pai unde am scris 


CULOATEA_TA_PREFERATA

pui ce culoare vrei tu  deasta iti da acea eroare 

Incearca asa 



if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, COLOR_GREEN, "Acesta nu este un vehicul VIP.");

 

Ma crezi prost ba ? Am scris COLOR_WHITE acolo. La fel iti da :|

CMD:vipwheels(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul.");
    if(vehicleid == personalcar[0][playerid] || vehicleid == personalcar[1][playerid] || vehicleid == personalcar[2][playerid] || vehicleid == personalcar[3][playerid] || vehicleid == personalcar[4][playerid] || vehicleid == personalcar[5][playerid])
    {
        if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, COLOR_GREEN, "Acesta nu este un vehicul VIP.");
        ShowPlayerDialog(playerid, DIALOG_VIPWHEELS, DIALOG_STYLE_LIST, "VIP Wheels", "Gold Wheels\nDollar Wheels\nShadow Wheels", "Set", "Cancel");
    }
    return 1;
}

Toata comanda, poate iti dai seama..

#retras

Link to comment
Share on other sites

  • 0
CMD:vipwheels(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid == personalcar[0][playerid] || vehicleid == personalcar[1][playerid] || vehicleid == personalcar[2][playerid] || vehicleid == personalcar[3][playerid] || vehicleid == personalcar[4][playerid] || vehicleid == personalcar[5][playerid])
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
    {
        if(CarInfo[OwnedVeh(vehicleid)][cVIP] == 0)return SCM(playerid, COLOR_GREEN, "Acesta nu este un vehicul VIP.");
        ShowPlayerDialog(playerid, DIALOG_VIPWHEELS, DIALOG_STYLE_LIST, "VIP Wheels", "Gold Wheels\nDollar Wheels\nShadow Wheels", "Set", "Cancel");
    }
    else return SendClientMessage(playerid, -1, "Nu esti intr-un vehicul.");
    return 1;
}

Incearca asa sau mergi acolo unde ai creeat variabila personalcar si modifica in personalcar[MAX_PLAYERS][7]

maxresdefault.jpg

 

 

 

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.