03.01.2015, 23:42
Here's my code
Here's the errors
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Jihad", cmdtext, true, 10) == 0)
{
new vehicleid
PutPlayerInVehicle(playerid, vehicleid, 0);
return 1;
SetTimer("Jihad", 60000, false);
SendClientMessage("In 60 seconds your vehicle will explode! (If you want to abort do /StopJihad")
}
SetVehicleHealth(vehicleid, 0)
SendClientMessage("You have successfully Jihaded!")
}
}
public OnPlayerCommandText(playerid, cmdtext[]){
if (strcmp("/StopJihad", cmdtext, true, 10) == 0)
{
new vehicleid;
vehicleid= GetPlayerVehicleID(playerid);
DestroyVehicle(vehicleid);
return 1;
}
return 0;
SendClientMessage("You're not preforming a Jihad!);
}
}
Here's the errors
Код:
C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(94) : error 001: expected token: ";", but found "-identifier-" C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(96) : warning 225: unreachable code C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(97) : error 035: argument type mismatch (argument 1) C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(99) : error 017: undefined symbol "vehicleid" C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(100) : error 035: argument type mismatch (argument 1) C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(103) : error 021: symbol already defined: "OnPlayerCommandText" C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(110) : warning 217: loose indentation C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(113) : warning 217: loose indentation C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : warning 225: unreachable code C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : error 037: invalid string (possibly non-terminated string) C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : error 017: undefined symbol "You" C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : warning 215: expression has no effect C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : error 001: expected token: ";", but found "-identifier-" C:\Users\Thevenomousgamer\Desktop\COD7ver3.0\filterscripts\Jihad1.pwn(114) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


