24.01.2010, 15:35
Код:
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;
}
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;
}
Do anyone know