TextDrawHideForPlayer
#1

Hello

My cmd:

Код:
if (!strcmp(cmdtext, "/moviemodeon", true))
    {
    TextDrawHideForPlayer(playerid, Stats[playerid]);
    TextDrawHideForPlayer(playerid, Stats2[playerid]);
    TextDrawHideForPlayer(playerid, Eventos[playerid]);
    TextDrawHideForPlayer(playerid, Eventoctf[playerid]);
    TextDrawHideForPlayer(playerid, KM[playerid]);
    TextDrawHideForPlayer(playerid, Tele[playerid]);
    TextDrawHideForPlayer(playerid, Tele1[playerid]);
    TextDrawHideForPlayer(playerid, Tele2[playerid]);
    TextDrawHideForPlayer(playerid, nivel[playerid]);
    TextDrawHideForPlayer(playerid, nivel2[playerid]);
    TextDrawHideForPlayer(playerid, nivel3[playerid]);
    TextDrawHideForPlayer(playerid, nivel4[playerid]);
    TextDrawHideForPlayer(playerid, nivel5[playerid]);
    TextDrawHideForPlayer(playerid, TextdrawEvento[playerid]);
    TextDrawHideForPlayer(playerid, Textdrawrace2[playerid]);
    SendClientMessage(playerid,COLOR_RED, "{FFFFFF}Activaste el {FF0000}Movie Mode{FFFFFF}, para revertir los efectos usa {FF0000}/moviemodeoff{FFFFFF}, de no funcionar deberas rologuear.");
    return 1;
    }
Error in Compile:
Код:
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11821) : error 028: invalid subscript (not an array or too many subscripts): "Eventos"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11821) : error 001: expected token: ";", but found "]"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11821) : error 029: invalid expression, assumed zero
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11821) : fatal error 107: too many error messages on one line
Reply
#2

PHP код:
if (!strcmp(cmdtext"/moviemodeon"true))
{
    
PlayerTextDrawHideForPlayer(playeridStats[playerid]);
    
PlayerTextDrawHideForPlayer(playeridStats2[playerid]);
    
PlayerTextDrawHideForPlayer(playeridEventos[playerid]);
    
PlayerTextDrawHideForPlayer(playeridEventoctf[playerid]);
    
PlayerTextDrawHideForPlayer(playeridKM[playerid]);
    
PlayerTextDrawHideForPlayer(playeridTele[playerid]);
    
PlayerTextDrawHideForPlayer(playeridTele1[playerid]);
    
PlayerTextDrawHideForPlayer(playeridTele2[playerid]);
    
PlayerTextDrawHideForPlayer(playeridnivel[playerid]);
    
PlayerTextDrawHideForPlayer(playeridnivel2[playerid]);
    
PlayerTextDrawHideForPlayer(playeridnivel3[playerid]);
    
PlayerTextDrawHideForPlayer(playeridnivel4[playerid]);
    
PlayerTextDrawHideForPlayer(playeridnivel5[playerid]);
    
PlayerTextDrawHideForPlayer(playeridTextDrawEvento[playerid]);
    
PlayerTextDrawHideForPlayer(playeridTextDrawrace2[playerid]);
    
SendClientMessage(playerid,COLOR_RED"{FFFFFF}Activaste el {FF0000}Movie Mode{FFFFFF}, para revertir los efectos usa {FF0000}/moviemodeoff{FFFFFF}, de no funcionar deberas rologuear.");
    return 
1;

Reply
#3

6 errors
Reply
#4

Quote:
Originally Posted by AlexanderChwojewski
Посмотреть сообщение
6 errors
show line erros pls.
Reply
#5

PHP код:
if (strcmp("/moviemodeon"cmdtexttrue11) == 0)
{
    
PlayerTextDrawHideForPlayer(playeridStats[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridStats2[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridEventos[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridEventoctf[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridKM[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridTele[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridTele1[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridTele2[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridnivel[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridnivel2[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridnivel3[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridnivel4[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridnivel5[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridTextDrawEvento[playerid]); 
    
PlayerTextDrawHideForPlayer(playeridTextDrawrace2[playerid]); 
    
SendClientMessage(playerid,COLOR_RED"{FFFFFF}Activaste el {FF0000}Movie Mode{FFFFFF}, para revertir los efectos usa {FF0000}/moviemodeoff{FFFFFF}, de no funcionar deberas rologuear."); 
    return 
1

Reply
#6

D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11821) : error 017: undefined symbol "PlayerTextDrawHideforPlayer"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11822) : error 017: undefined symbol "PlayerTextDrawHideforPlayer"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11823) : error 017: undefined symbol "PlayerTextDrawHideForPlayer"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11823) : warning 215: expression has no effect
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11823) : error 001: expected token: ";", but found "]"
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11823) : error 029: invalid expression, assumed zero
D:\usuarios\chowi\escritorio\SR SOURCES\SR Source\Source2\gamemodes\SRBGM.pwn(11823) : fatal error 107: too many error messages on one line


Line:

PlayerTextDrawHideForPlayer(playerid, Eventos[playerid]);
Reply
#7

It's PlayerTextDrawHide

https://sampwiki.blast.hk/wiki/PlayerTextDrawHide
Reply
#8

U need to use :

Код:
new PlayerText:TextDrawName[MAX_PLAYERS];
At the top of your code.

Then use functions like:

PlayerTextDrawShow(playerid, TextDrawName[playerid]);
PlayerTextDrawHide(playerid, TextDrawName[playerid]);
ect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)