Is not showing - 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: Is not showing (
/showthread.php?tid=618024)
Is not showing -
StR_MaRy - 29.09.2016
hey guys i have a message but is not showing it after i die in a format , but in a sendclientmessage it work's
Код HTML:
public OnPlayerDeath(playerid, killerid, reason)
{
if(VehTruckID[playerid] != -1)
{
vDBID[ VehTruckID[playerid] ] = 0;
DestroyVehicle(VehTruckID[playerid]);
VehTruckID[playerid] = -1;
Truckers--;
DisableRemoteVehicleCollisions(playerid, 0);
InJob[playerid] = 0;
JobCollect[playerid] = 0;
PlayerTextDrawHide(playerid, HelpTextdraw[playerid]);
format(gString, sizeof(gString), "(!) Ai fost omorit de {FFFFFF}%s {A9C4E4}in timp ce lucrai, poti sa faci o poza apasand tasta {FFFFFF}F8 {A9C4E4}si fa o reclamatie pe {FFFFFF}/panel", GetName(killerid));
SendClientMessage(playerid, COLOR_SYN2,gString);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
PlayerTextDrawHide(playerid, ExamTextdraw[playerid]);
SendClientMessage(playerid, COLOR_SYN2, "Hey man");
}
}
i get the message
Код HTML:
SendClientMessage(playerid, COLOR_SYN2, "Hey man");
but this message i don't get it
Код HTML:
format(gString, sizeof(gString), "(!) Ai fost omorit de {FFFFFF}%s {A9C4E4}in timp ce lucrai, poti sa faci o poza apasand tasta {FFFFFF}F8 {A9C4E4}si fa o reclamatie pe {FFFFFF}/panel", GetName(killerid));
SendClientMessage(playerid, COLOR_SYN2,gString);
Re: Is not showing -
JaKe Elite - 29.09.2016
Can you show us what is the cell size of gString?
Re: Is not showing -
StR_MaRy - 29.09.2016
Код HTML:
new gString[2000];
but everywhere is working only here is not
Re: Is not showing -
DTV - 30.09.2016
I'm pretty sure the string you have there exceeds 128 characters, meaning it won't show as that's the limit for SendClientMessage. Any string you try to send through SendClientMessage that's over 128 characters simply won't send, so the only way to fix it is to reduce the amount of characters in the string.
Also, 2000 for the string size is way too much for a string variable you should try reducing it to just 128 if at all possible.