Jump to content

Recommended Posts

Posted (edited)

Ma poate ajuta cineva?

Erorile:

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 029: invalid expression, assumed zero
D:\mamanatura\gamemodes\s4uriK.pwn(15263) : warning 215: expression has no effect
D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 001: expected token: ";", but found "]"
D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 029: invalid expression, assumed zero
D:\mamanatura\gamemodes\s4uriK.pwn(15263) : fatal error 107: too many error messages on one line

Comanda

CMD:edittype(playerid, params[])
{
    new carid, price;
    if(sscanf(params, "ii", carid, price)) return SendClientMessage(playerid, -1, "Syntax: /edittype [carid] [type]");
    if(playerVariables[playerid][pAdminLevel] >= 6)
    {
        [carid][dCarType] = price;
        format(szMessage, sizeof(szMessage), "You have changed car %d's type to %d", carid, dealerVariables[carid][dCarType]);
        SendClientMessage(playerid, -1, szMessage);
        saveCar(carid);
    }
    return 1;
}

Dau +1 pentru cine ma ajuta

Edited by Bk.DealerDrog
Posted (edited)

Ma poate ajuta cineva?

Erorile:

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 029: invalid expression, assumed zero

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : warning 215: expression has no effect

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 001: expected token: ";", but found "]"

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : error 029: invalid expression, assumed zero

D:\mamanatura\gamemodes\s4uriK.pwn(15263) : fatal error 107: too many error messages on one line

Comanda

CMD:edittype(playerid, params[])

{

new carid, price;

if(sscanf(params, "ii", carid, price)) return SendClientMessage(playerid, -1, "Syntax: /edittype [carid] [type]");

if(playerVariables[playerid][pAdminLevel] >= 6)

{

[carid][dCarType] = price;

format(szMessage, sizeof(szMessage), "You have changed car %d's type to %d", carid, dealerVariables[carid][dCarType]);

SendClientMessage(playerid, -1, szMessage);

saveCar(carid);

}

return 1;

}

Dau +1 pentru cine ma ajuta

dealerVariables [carid][dCarType] = price; Edited by AlexC
Posted

D:\mamanatura\gamemodes\s4uriK.pwn(15264) : error 017: undefined symbol "dealerVariables"
D:\mamanatura\gamemodes\s4uriK.pwn(15264) : warning 215: expression has no effect
D:\mamanatura\gamemodes\s4uriK.pwn(15264) : error 001: expected token: ";", but found "]"
D:\mamanatura\gamemodes\s4uriK.pwn(15264) : error 029: invalid expression, assumed zero
D:\mamanatura\gamemodes\s4uriK.pwn(15264) : fatal error 107: too many error messages on one line

Posted

Eu am lăsat un spatiu intre dealerVariables si [carid]

Daca il ai sterge l

Daca tot asa, nu ai facut enum-ul

Posted

incearca la linia:

if(playerVariables.....etc [pAdminLevel] >=6); (sa pui punct si virgula)

nu se pune ';' dupa if

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp