tag mismatch :D
#1

PHP код:
public OnPlayerClickTextDraw(playeridText:clickedid)
{
   new 
team1count GetTeamCount(TEAM_EURASIA);
   new 
team2count GetTeamCount(TEAM_USA);
   new 
team3count GetTeamCount(TEAM_ARAB);
   new 
team4count GetTeamCount(TEAM_SOVIET);
   new 
team5count GetTeamCount(TEAM_AUS);
   new 
team7count GetTeamCount(TEAM_MERC);
   if(
clickedid == kk
    {
        
kk team2count//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*USA - .");
        
    }
    else if(
clickedid == ll//
    
{
        
ll team1count//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*EURASIA - .");
    }
    else if(
clickedid == mm// 
    
{
        
mm team3count//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*ARAB - .");
    }
    else if(
clickedid == nn// 
    
{
        
nn team4count;//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*AUSTRAILLIA - .");
    }
    else if(
clickedid == oo// 
    
{
        
oo team5count;//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*SOVIET - .");
    }
    else if(
clickedid == pp// 
    
{
        
pp team7count;//////////////tag mismatch
        
ClassDialog(playerid);
        
SendClientMessage(playerid,COLOR_PINK,"*MERCENNARY - .");
    }
     return 
1;

Reply
#2

Show 'new kk', 'new ll', .....
Reply
#3

here is this
Quote:

kk = TextDrawCreate(101.599960, 274.026763, "USA");
TextDrawLetterSize(kk, 0.449999, 1.600000);
TextDrawAlignment(kk, 1);
TextDrawColor(kk, -1);
TextDrawSetShadow(kk, 0);
TextDrawSetOutline(kk, 1);
TextDrawBackgroundColor(kk, 51);
TextDrawFont(kk, 2);
TextDrawSetProportional(kk, 1);
TextDrawSetSelectable(kk, true);

ll = TextDrawCreate(163.199996, 274.026672, "EURASIA");
TextDrawLetterSize(ll, 0.449999, 1.600000);
TextDrawAlignment(ll, 1);
TextDrawColor(ll, -1);
TextDrawSetShadow(ll, 0);
TextDrawSetOutline(ll, 1);
TextDrawBackgroundColor(ll, 51);
TextDrawFont(ll, 2);
TextDrawSetProportional(ll, 1);
TextDrawSetSelectable(ll, true);

mm = TextDrawCreate(267.200012, 274.773345, "ARAB");
TextDrawLetterSize(mm, 0.449999, 1.600000);
TextDrawAlignment(mm, 1);
TextDrawColor(mm, -1);
TextDrawSetShadow(mm, 0);
TextDrawSetOutline(mm, 1);
TextDrawBackgroundColor(mm, 51);
TextDrawFont(mm, 2);
TextDrawSetProportional(mm, 1);
TextDrawSetSelectable(mm, true);

nn = TextDrawCreate(101.600006, 378.560058, "AUSTRAILIA");
TextDrawLetterSize(nn, 0.209997, 1.674666);
TextDrawAlignment(nn, 1);
TextDrawColor(nn, -1);
TextDrawSetShadow(nn, 0);
TextDrawSetOutline(nn, 1);
TextDrawBackgroundColor(nn, 51);
TextDrawFont(nn, 2);
TextDrawSetProportional(nn, 1);
TextDrawSetSelectable(nn, true);

oo = TextDrawCreate(164.799987, 380.800079, "SOVIET");
TextDrawLetterSize(oo, 0.405999, 1.376000);
TextDrawAlignment(oo, 1);
TextDrawColor(oo, -1);
TextDrawSetShadow(oo, 0);
TextDrawSetOutline(oo, 1);
TextDrawBackgroundColor(oo, 51);
TextDrawFont(oo, 2);
TextDrawSetProportional(oo, 1);
TextDrawSetSelectable(oo, true);

pp = TextDrawCreate(245.599975, 381.546722, "MERCENARY");
TextDrawLetterSize(pp, 0.330000, 1.413333);
TextDrawAlignment(pp, 1);
TextDrawColor(pp, -1);
TextDrawSetShadow(pp, 0);
TextDrawSetOutline(pp, 1);
TextDrawBackgroundColor(pp, 51);
TextDrawFont(pp, 2);
TextDrawSetProportional(pp, 1);
TextDrawSetSelectable(pp, true);

Reply
#4

no one
Reply
#5

Show us where u created these variables. Like new kk;, new ll,.....
Reply
#6

Quote:

new Loading[MAX_PLAYERS];
new Laser[MAX_PLAYERS];
new Text:Textdraw1; // connect msg 2
new Text:Textdraw2; // connect msg 2
new Text:box;
new Text:EA;
new Text:EB;
new Text:EC;
new Text:ED;
new Text:aa;
new Text:bb;
new Text:cc;
new Text:dd;
new Text:ee;
new Text:ff;
new Text:gg;
new Text:hh;
new Text:ii;
new Text:jj;
new Text:kk;
new Text:ll;
new Text:mm;
new Text:nn;
new Texto;
new Textp;
new Text:qq;
new Text:rr;
new Texts;
new Text:tt;
new Textx;
new Text:vv;
new Text:yy;
new Text:zz;
new Text:za;
new Text:zb;
new Text:zc;
new Text:zd;

i made this upper in the script
Reply
#7

anyone plz/ i need this for mine gm.its necessary guys
Reply
#8

solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)