Error :(
#1

Hi. I've got a question what's wrong in this code ?
Код:
new vehid = GetPlayerVehicleID(playerid);
if(GetPlayerSpeed(playerid) >= 5) Fuel[vehid] -= 1;
I've got a ERROR
Код:
TruckTrans.pwn(31768) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Warning.

Reply
#2

new vehid = GetPlayerVehicleID(playerid);
if(GetPlayerSpeed(playerid) >= 5)
{
Fuel[vehid] -= 1;
Reply
#3

new vehid = GetPlayerVehicleID(playerid);
if(GetPlayerSpeed(playerid) >= 5)
{
Fuel[vehid] -= 1; return 1; }
Reply
#4

try now

pawn Код:
new vehid = GetPlayerVehicleID(playerid);
if(GetPlayerSpeed(playerid) >= 5) Fuel[vehid] = Fuel[vehid] - 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)