PDA

View Full Version : Problem with ...


Alpay0098
10/12/2015, 12:17 PM
Hi community,

Problems : gamemodes\N-RP.pwn(20388) : error 029: invalid expression, assumed zero
gamemodes\N-RP.pwn(20388) : warning 215: expression has no effect

Codes : public WFuelIncrease()
{
WFuel[1][wsfuel] =+ 1000; // line 20388
return 1;
}

CrazyChoco
10/12/2015, 12:19 PM
Hi community,

Problems : gamemodes\N-RP.pwn(20388) : error 029: invalid expression, assumed zero
gamemodes\N-RP.pwn(20388) : warning 215: expression has no effect

Codes : public WFuelIncrease()
{
WFuel[1][wsfuel] =+ 1000; // line 20388
return 1;
}



WFuel[1][wsfuel] =+ 1000;

This line is pure nonsense.

It shall be:
Codes : public WFuelIncrease(playerid)
{
WFuel[playerid][wsfuel] =+ 1000; // line 20388
return 1;
}[/QUOTE]

Alpay0098
10/12/2015, 12:32 PM
It's not related to player, 1 is MAX_WFUEL (Max Whole Fuel), the fuel that comes from Fuel Company for whole server

ATGOggy
10/12/2015, 12:35 PM
Try this:WFuel[1][wsfuel] += 1000;

PrO.GameR
10/12/2015, 12:53 PM
There is no =+
it's +=

Alpay0098
10/12/2015, 01:00 PM
Yea It worked,
ATGOggy Rep'ed