PHP Code:
new inviterid, strt[256];
PHP Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new str[121+MAX_PLAYER_NAME];
new iname[MAX_PLAYER_NAME]; new name[MAX_PLAYER_NAME];
GetPlayerName(inviterid, iname, sizeof(iname));
GetPlayerName(playerid, name, sizeof(name));
if(dialogid == 99)
{
if(response)
{
format(str, sizeof(str), "%s has join your squad.", name);
SendClientMessage(inviterid, Col_Grey, str);
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(playerid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);
PlayerTextDrawShow(inviterid, TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(inviterid, TDEditor_PTD[playerid][2]);
PlayerTextDrawShow(inviterid, TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(inviterid, TDEditor_PTD[playerid][3]);
}
else
{
format(str, sizeof(str), "%s has deny your squad invitation.", name);
SendClientMessage(inviterid, Col_Grey, str);
}
}
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); |
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?