Is not showing
#1

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);
Reply
#2

Can you show us what is the cell size of gString?
Reply
#3

Код HTML:
new gString[2000];
but everywhere is working only here is not
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)