What is the wrong with this ? -
FizzyWalshy - 23.01.2017
Remove -Fixed.
Re: What is the wrong with this ? -
IceCube! - 23.01.2017
The image is broken.
Re: What is the wrong with this ? -
DerickClark - 23.01.2017
Use tinypic
Re: What is the wrong with this ? -
GangstaSunny. - 23.01.2017
"SendClientMessage
Ex" is not a real samp function.
check your function for more details.
Re: What is the wrong with this ? -
mickmelon - 23.01.2017
You've put the link in the img tags instead of the actual image url
SendClientMessageEx requires more parameters
EDIT: whoops 2 replies as I was doing this lol
Re: What is the wrong with this ? -
saffierr - 23.01.2017
Just use, SendClientMessage(); ?
Re: What is the wrong with this ? -
TheAngryBird - 23.01.2017
try removing the RETURN before SendClientMessageEx , just to see if the crash continue to happen.
it also could be the SendClientMessageEx that cause the crash.
try with SendClientMessageFormatted();
it has the same parameters than SendClientMessageEx so just replace SendClientMessageEx with SendClientMessageFormatted , not the whole line.
Код:
stock SendClientMessageFormatted(playerid, color, fstring[], {Float, _}:...)
{
static const STATIC_ARGS = 3;
new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
if(n)
{
new message[344],arg_start,arg_end;
#emit CONST.alt fstring
#emit LCTRL 5
#emit ADD
#emit STOR.S.pri arg_start
#emit LOAD.S.alt n
#emit ADD
#emit STOR.S.pri arg_end
do
{
#emit LOAD.I
#emit PUSH.pri
arg_end -= BYTES_PER_CELL;
#emit LOAD.S.pri arg_end
}
while(arg_end > arg_start);
#emit PUSH.S fstring
#emit PUSH.C 144
#emit PUSH.ADR message
n += BYTES_PER_CELL * 3;
#emit PUSH.S n
#emit SYSREQ.C format
n += BYTES_PER_CELL;
#emit LCTRL 4
#emit LOAD.S.alt n
#emit ADD
#emit SCTRL 4
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, message);
} else {
return SendClientMessage(playerid, color, message);
}
} else {
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, fstring);
} else {
return SendClientMessage(playerid, color, fstring);
}
}
}
Re: What is the wrong with this ? -
FizzyWalshy - 23.01.2017
Re: What is the wrong with this ? -
TheAngryBird - 24.01.2017
oh wait. actually , GetPlayerName store the value in a string. i dont think you can use it this way.
it is more like
Код:
new name[MAX_PLAYERS];
GetPlayerName(name, sizeof(name));
and then you use "name" in your message like this
Код:
SendClientMessage(playerid, -1, "%s", name);