Problem with ...
#1

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;
}
Reply
#2

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
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]
Reply
#3

It's not related to player, 1 is MAX_WFUEL (Max Whole Fuel), the fuel that comes from Fuel Company for whole server
Reply
#4

Try this:
pawn Код:
WFuel[1][wsfuel] += 1000;
Reply
#5

There is no =+
it's +=
Reply
#6

Yea It worked,
ATGOggy Rep'ed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)