Textdraw.
#1

I made this command here:

Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
    TextDrawHideForPlayer(Textdraw1);
    return 1;
}
And I get 2 errors which are:


C:\Users\graham\Desktop\DIS.pwn(3271) : warning 213: tag mismatch
C:\Users\graham\Desktop\DIS.pwn(3271) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Can someone please help me with this? I will give them +Rep!
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
    TextDrawHideForPlayer(playerid, Textdraw1);
    return 1;
}
You need to specify who to hide it for.

Alternatively, you could do:

pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
    TextDrawHideForAll(Textdraw1);
    return 1;
}
Reply
#3

Quote:
Originally Posted by 2KY
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
    TextDrawHideForPlayer(playerid, Textdraw1);
    return 1;
}
You need to specify who to hide it for.

Alternatively, you could do:

pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
    TextDrawHideForAll(Textdraw1);
    return 1;
}
Can't believe I forgot to add playerid :/ Still a noob, thanks for the help and I have +Rep your profile.
Reply
#4

Quote:
Originally Posted by TheDominator
Посмотреть сообщение
Can't believe I forgot to add playerid :/ Still a noob, thanks for the help and I have +Rep your profile.
We all have to start somewhere.
Reply
#5

how to do? Level minute as the image just give me a link please help me what is the image of Level in minutes and speedometar to [img] http://zaslike.com/files/n4luxgi53tn8uukvzak7.png [/ img]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)