TextDrawSetString Warnings
#1

PHP код:
new inviteridstrt[256]; 
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    new 
str[121+MAX_PLAYER_NAME];
    new 
iname[MAX_PLAYER_NAME]; new name[MAX_PLAYER_NAME];
    
GetPlayerName(inviteridinamesizeof(iname));
    
GetPlayerName(playeridnamesizeof(name));
    
    if(
dialogid == 99)
    {
        if(
response)
        {
            
format(strsizeof(str), "%s has join your squad."name);
            
SendClientMessage(inviteridCol_Greystr);
            
InSquad[playerid] = 1;
            
format(strt,sizeof(strt),"~b~%s"iname);
            
TextDrawSetString(TDEditor_PTD[playerid][2], strt);
            
format(strt,sizeof(strt),"~b~%s"name);
            
TextDrawSetString(TDEditor_PTD[playerid][3], strt);
            
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][0]);
            
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][2]);
            
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][1]);
            
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][3]);
            
            
PlayerTextDrawShow(inviteridTDEditor_PTD[playerid][0]);
            
PlayerTextDrawShow(inviteridTDEditor_PTD[playerid][2]);
            
PlayerTextDrawShow(inviteridTDEditor_PTD[playerid][1]);
            
PlayerTextDrawShow(inviteridTDEditor_PTD[playerid][3]);
        }
        else
        {
            
format(strsizeof(str), "%s has deny your squad invitation."name);
            
SendClientMessage(inviteridCol_Greystr);
        }
    }
    return 
1;

Код:
E:\SA-MP Server Scripts\[S]uper\gamemodes\[S]uper2.pwn(739) : warning 213: tag mismatch
E:\SA-MP Server Scripts\[S]uper\gamemodes\[S]uper2.pwn(741) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Quote:

Line 739- TextDrawSetString(TDEditor_PTD[playerid][2], strt);
Line 741- TextDrawSetString(TDEditor_PTD[playerid][3], strt);

Why am I getting tag mismatches? Help me please.

btw for inviterid its suppose to be the id of the player whos inviting the other player, but it doesn't look like it can anybody tell me what I did wrong?
Reply


Messages In This Thread
TextDrawSetString Warnings - by SteSte - 27.06.2017, 17:19
Re: TextDrawSetString Warnings - by NaS - 27.06.2017, 17:40
Re: TextDrawSetString Warnings - by SteSte - 27.06.2017, 18:03
Re: TextDrawSetString Warnings - by KingSenpai - 27.06.2017, 18:28
Re: TextDrawSetString Warnings - by NaS - 27.06.2017, 18:37
Re: TextDrawSetString Warnings - by SteSte - 27.06.2017, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)