SA-MP Forums Archive
SendClientMessage Not Working ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessage Not Working ? (/showthread.php?tid=520416)



SendClientMessage Not Working ? - Ahmad45123 - 18.06.2014

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 ?


Re: SendClientMessage Not Working ? - kamiliuxliuxliux - 18.06.2014

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


Re : SendClientMessage Not Working ? - FilesMAker - 18.06.2014

try to set new string[180] to >> new string[144]


Re: SendClientMessage Not Working ? - Ihateyou - 18.06.2014

why the f** u using strpack

what is Tme(time) ? ??