Posts: 2,938
Threads: 162
Joined: May 2010
Код:
stock StopRefueling(playerid)
{
new randomCash = random(100);
new properCash = 0 - randomCash;
GivePlayerMoney(playerid, properCash);
SendFormattedMessage(playerid, COLOR_YELLOW,".::[FUEL]: Vehicle Refueled For %d!.", properCash);
Speed[playerid][Refueling] = 0; KillTimer(Speed[playerid][ReFuelTimer]);
else {
SendFormattedMessage(playerid, RED,".::[ERROR]: You Do Not Have Enough Cash TO Refuel Your Vehicle!.", properCash);
}
return true;
}
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(2878) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Posts: 2,938
Threads: 162
Joined: May 2010
oo.. so how do i make it if player doesnt have 100 cash or more no refuel for him or her?
Posts: 2,938
Threads: 162
Joined: May 2010
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(2878) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(2878) : error 036: empty statement
Posts: 2,938
Threads: 162
Joined: May 2010
Код:
new properCash = 0 - randomCash;
its not that
Код:
if(GetPlayerMoney(playerid) < 100) return SendFormattedMessage(playerid, RED,".::[ERROR]: You Do Not Have Enough Cash To Refuel Your Vehicle!.", Vehicle[GetPlayerVehicleID(playerid)][OldFuel]);
giving me 2 errors..
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(2878) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(2878) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.