My mind is stopped, some1 fix this pls... -
RoCK'N'Rolla - 25.09.2011
Код:
dcmd_xyz(playerid, params[])
{
// #pragma unused params
// #pragma unused playerid
new str[128];
new taaq;
if(sscanf(params, "d", taaq))
{
format(str, sizeof(str), "Textdraw%d", taaq);
TextDrawHideForPlayer(playerid, str);
}
return 1;
}
Код:
error 035: argument type mismatch (argument 2) >>> TextDrawHideForPlayer(playerid, str);
Re: My mind is stopped, some1 fix this pls... -
antonio112 - 25.09.2011
What the hell are you trying to achieve here? I can't understand ...
First of all, you used:
which means you don't use parameters.
Then, you used sscanf, which means you use parameters.
Then you hide the textdraw for player? What ....
Re: My mind is stopped, some1 fix this pls... -
SantarioLeone - 25.09.2011
TextDrawHideForPlayer(playerid, Textdraw[playerid]);
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
Re: My mind is stopped, some1 fix this pls... -
RoCK'N'Rolla - 25.09.2011
it has "//" in the start..
TextDrawHideForPlayer(playerid, Textdraw59);
^works for me, but when i use it with "string", i get this error..
Re: My mind is stopped, some1 fix this pls... -
iPLEOMAX - 25.09.2011
You can't hide TextDraws like that.
TextDrawHide requires the textid parameter to hide it.
So, the cmd should be:
pawn Код:
dcmd_xyz(playerid, params[])
{
new textid;
if(!sscanf(params, "d", textid))
{
TextDrawHideForPlayer(playerid, textid);
} else SendClientMessage(playerid, 0xFF0000FF, "Usage: /xyz [Text ID]");
return 1;
}
Re: My mind is stopped, some1 fix this pls... -
RoCK'N'Rolla - 25.09.2011
I know this, ur right. But i just didn't want to type "Textdraw", only wanted to do it with numbers only
Anyway, that was what i wanted to know, thanks.
Re: My mind is stopped, some1 fix this pls... -
Rachael - 25.09.2011
The textdraw id is type Text:
Re : My mind is stopped, some1 fix this pls... -
Naruto_Emilio - 25.09.2011
Did you added your textdraw first? i mean did you created it?
Re: My mind is stopped, some1 fix this pls... -
RoCK'N'Rolla - 25.09.2011
Yeah, i did. None of those worked btw, still getting the mismatch error.
Re: My mind is stopped, some1 fix this pls... -
iPLEOMAX - 25.09.2011
I don't know if this will work, but try it:
pawn Код:
TextDrawHideForPlayer(playerid, Text:textid); //Replace this in my code posted earlier.