SA-MP Forums Archive
Errors on my Engine System - 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: Errors on my Engine System (/showthread.php?tid=123079)



Errors on my Engine System - Torran - 24.01.2010

Код:
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(248) : error 017: undefined symbol "dcmd_exit"
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(283) : error 017: undefined symbol "dcmd_exit"
C:\Users\Torran\Desktop\sa-mp\filterscripts\engine.pwn(297) : error 030: compound statement not closed at the end of file (started at line 265)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(exit, 4, cmdtext);
    dcmd(engine, 6, cmdtext);
    return 0;
}
Line 246 to 251

pawn Код:
dcmd_exit(playerid, params[])
{
    #pragma unused params
    if(IsPlayerInAnyVehicle(playerid))
    {
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid, 1);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle");
    }
    return 1;
}
Line 283 to 296

Do anyone know


Re: Errors on my Engine System - Torran - 24.01.2010

Anyone?


Re: Errors on my Engine System - mansonh - 24.01.2010

exit is a built in command. so you can't use it. you will notice in the code highlighting it highlights exit.


Re: Errors on my Engine System - Torran - 24.01.2010

Ive used it before with no errors


Re: Errors on my Engine System - mansonh - 24.01.2010

Well i would give it a try with a different name just to see.
Other than that your third error may cause it
error 030: compound statement not closed at the end of file (started at line 265)
you need to finish the statement.