30.03.2011, 14:15
I am trying to add a fuel system, and i get this following error:
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 017: undefined symbol "td_fuel"
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : warning 215: expression has no effect
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 001: expected token: ";", but found "]"
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 029: invalid expression, assumed zero
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : fatal error 107: too many error messages on one line
This is what my Thing is..
Line 417 is:
anyone know whats wrong?
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 017: undefined symbol "td_fuel"
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : warning 215: expression has no effect
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 001: expected token: ";", but found "]"
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : error 029: invalid expression, assumed zero
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(417) : fatal error 107: too many error messages on one line
This is what my Thing is..
pawn Код:
public OnPlayerSpawn(playerid)
{
td_fuel[playerid] = TextDrawCreate(45,324,"Fuel: 100"); //create the textdraw at position
TextDrawBackgroundColor(td_fuel[playerid],0x00000033); //setting an nice backgroundcolor
TextDrawFont(td_fuel[playerid],3); //font type of textdraw
TextDrawLetterSize(td_fuel[playerid],0.699999,1.700000); //size...
TextDrawColor(td_fuel[playerid],0x000000ff); //color
TextDrawSetShadow(td_fuel[playerid],3); //dropping the shadow
return 1;
}
pawn Код:
td_fuel[playerid] = TextDrawCreate(45,324,"Fuel: 100"); //create the textdraw at position