Errors on my Engine System
#1

Код:
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
Reply
#2

Anyone?
Reply
#3

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

Ive used it before with no errors
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)