/*ExitRace*/
CMD:exitrace(playerid, params[])
{
if(Joined[playerid] == true)
{
JoinCount--;
Joined[playerid] = false;
DestroyVehicle(CreatedRaceVeh[playerid]);
DisablePlayerRaceCheckpoint(playerid);
TextDrawHideForPlayer(playerid, RaceInfo[playerid]);
CPProgess[playerid] = 0;
KillTimer(InfoTimer[playerid]);
TogglePlayerControllable(playerid, true);
SetCameraBehindPlayer(playerid);
#if defined RACE_IN_OTHER_WORLD
SetPlayerVirtualWorld(playerid, 0);
#endif
} else return SendClientMessage(playerid, RED, "<!> You are not in a race!");
return 1;
}
/*ExitRace*/
CMD:er(playerid, params[])
{
return CMD:exitrace(playerid,params);//6677
}
C:\Users\proprietario\Desktop\Drifting Stunting Racing\gamemodes\DSRClan.pwn(6677) : error 029: invalid expression, assumed zero C:\Users\proprietario\Desktop\Drifting Stunting Racing\gamemodes\DSRClan.pwn(6677) : error 029: invalid expression, assumed zero C:\Users\proprietario\Desktop\Drifting Stunting Racing\gamemodes\DSRClan.pwn(6678) : warning 209: function "cmd_er" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
CMD:er(playerid, params[])
{
return CMD:exitrace(playerid,params);//6677
}
CMD:er(playerid, params[])
return cmd_exitrace(playerid, params);
pawn Код:
pawn Код:
|