Little Problem [+REP]
#5

In the /de command, you also set the timer? Just to be sure, debug it:
pawn Код:
public PutInCS(playerid)
{
    new Float:x, Float:y, Float:z, Float:angle, csveh;
    printf("DEBUG: PutInCS is being called.. playerid: %i", playerid);
    if(PlayerInDM[playerid][CS] == 1)
    {
        GetPlayerPos(playerid, x,y,z);
        GetPlayerFacingAngle(playerid, angle);
        csveh = CreateVehicle(444, x,y,z,angle, 24, 25, -1);
        PutPlayerInVehicle(playerid, csveh, 0);
        GameTextForPlayer(playerid, "~R~ Defeat all your opponents!", 4000, 1);
        TogglePlayerControllable(playerid, true);
    }
}
After executing the command and 4 seconds have passed (from the timer), does it print the message in the console?
Reply


Messages In This Thread
Little Problem [+REP] - by Ady_Ro - 23.03.2014, 13:52
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 13:55
Re: Little Problem [+REP] - by Sgt.TheDarkness - 23.03.2014, 13:55
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 14:02
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 14:10
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 16:18
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 16:52
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 16:54
Re: Little Problem [+REP] - by Konstantinos - 23.03.2014, 17:02
Re: Little Problem [+REP] - by Ady_Ro - 23.03.2014, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)