Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

TextDrawSetString Warnings

$
0
0
PHP Code:

new inviteridstrt[256]; 

PHP Code:

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;


Code:

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 (c) 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?

Viewing all articles
Browse latest Browse all 18226

Trending Articles