[HELP]DO you i have a extra bracket in this command? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]DO you i have a extra bracket in this command? (
/showthread.php?tid=110794)
[HELP]DO you i have a extra bracket in this command? -
Lilcuete - 28.11.2009
do i have a extra bracket in this command because i get 26errors
Код:
public starthotwireing(playerid)
{
new hotran;
{
new string[256];
new sendername[MAX_PLAYER_NAME];
hotran = random(4);
switch(hotran)
{
case 0:
{
hotwire[GetPlayerVehicleID(playerid)] = true;
TogglePlayerControllable(playerid, true);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s hotwires the car successfully and drives away", sendername);
ProxDetector(30.0, playerid, string, COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
gEngine[playerid] = 1;
SetTimer("hideall",3000,false);
TextDrawHideForPlayer(playerid, HWTE);
TextDrawShowForPlayer(playerid, TESP);
if(engineOn[GetPlayerVehicleID(playerid)])
}
case 1, 2, 3 ,4:
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s fails at the hotwireing", sendername);
ProxDetector(30.0, playerid, string, COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
gEngine[playerid] = 0;
TextDrawShowForPlayer(playerid, HWTE);
TextDrawShowForPlayer(playerid, EDNSF);
SetTimer("hideall",3000,false);
}
}
return 1;
}
Thanks
Re: [HELP]DO you i have a extra bracket in this command? -
Correlli - 28.11.2009
Yes, you do - after the 'hotran' variable and you also have an empty if-statement.
Re: [HELP]DO you i have a extra bracket in this command? -
Lilcuete - 28.11.2009
ok edited still get 26errors
Re: [HELP]DO you i have a extra bracket in this command? -
Correlli - 28.11.2009
Re-post the new code.
Re: [HELP]DO you i have a extra bracket in this command? -
acade - 28.11.2009
Post errors please.
Re: [HELP]DO you i have a extra bracket in this command? -
Lilcuete - 28.11.2009
well no i get 4errors here it is
Код:
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2702) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2702 -- 2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : error 014: invalid statement; not in switch
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : warning 215: expression has no effect
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Lilc\My Documents\HRP2\gamemodes\h134.pwn(2703) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.