SendClientMessage Not Working ?
#1

pawn Код:
//Reset Everything.
        KillTimer(timer);
        RemovePlayerFromVehicle(playerid);
        time = 0;
        is = 0;
        base = 0;
        //Show The Result.
        new Float:HP;
        new sss[180];
        new string[180];
        strpack(sss, Tme(time));
        GetVehicleHealth(truck, HP);
        format(string, sizeof(string), "You Passes In %s With %i Damage.", sss, floatround(HP));
        SendClientMessage(playerid, -1, string);
        //Remove The Vehicles
        DestroyVehicle(truck);
        DestroyVehicle(trailer);
        return 1;
Here the whole code is done well, Even The vehicle is destroyed.
But the message isn't sent to me ? why ?
Reply
#2

Well, the message wouldn't be sent if you message is longer than 144 characters, but I don't think it is.
Reply
#3

try to set new string[180] to >> new string[144]
Reply
#4

why the f** u using strpack

what is Tme(time) ? ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)