Where do i put this?
#1

PHP код:
      Textdraw9[playerid] = CreatePlayerTextDraw(playerid9.500000210.437500"Deagle");
    
PlayerTextDrawLetterSize(playeridTextdraw9[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw9[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw9[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw9[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw9[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw9[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw9[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw9[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw9[playerid], true);
    
Textdraw10[playerid] = CreatePlayerTextDraw(playerid6.000000240.187500"Shotgun");
    
PlayerTextDrawLetterSize(playeridTextdraw10[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw10[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw10[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw10[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw10[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw10[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw10[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw10[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw10[playerid], true);
    
Textdraw11[playerid] = CreatePlayerTextDraw(playerid6.000000270.375000"Sniper");
    
PlayerTextDrawLetterSize(playeridTextdraw11[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw11[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw11[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw11[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw11[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw11[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw11[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw11[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw11[playerid], true);
    
Textdraw12[playerid] = CreatePlayerTextDraw(playerid8.000000296.187500"M4");
    
PlayerTextDrawLetterSize(playeridTextdraw12[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw12[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw12[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw12[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw12[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw12[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw12[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw12[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw12[playerid], true);
    
Textdraw13[playerid] = CreatePlayerTextDraw(playerid6.500000322.875000"Spas");
    
PlayerTextDrawLetterSize(playeridTextdraw13[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw13[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw13[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw13[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw13[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw13[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw13[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw13[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw13[playerid], true);
    
Textdraw14[playerid] = CreatePlayerTextDraw(playerid5.000000352.187500"Knife");
    
PlayerTextDrawLetterSize(playeridTextdraw14[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw14[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw14[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw14[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw14[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw14[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw14[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw14[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw14[playerid], true);
    
Textdraw15[playerid] = CreatePlayerTextDraw(playerid2.500000379.750000"Armour");
    
PlayerTextDrawLetterSize(playeridTextdraw15[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw15[playerid], 1);
    
PlayerTextDrawColor(playeridTextdraw15[playerid], -16776961);
    
PlayerTextDrawSetShadow(playeridTextdraw15[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextdraw15[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextdraw15[playerid], 51);
    
PlayerTextDrawFont(playeridTextdraw15[playerid], 2);
    
PlayerTextDrawSetProportional(playeridTextdraw15[playerid], 1);
    
PlayerTextDrawSetSelectable(playeridTextdraw15[playerid], true); 
Reply
#2

Place it under OnPlayerConnect.

pawn Код:
public OnPlayerConnect(playerid)
{
    //here
    return 1;
}
Reply
#3

PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(551) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(552) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(553) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(554) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(555) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(556) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(557) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(558) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(565) : error 033: array must be indexed (variable "Textdraw9")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(570) : error 033: array must be indexed (variable "Textdraw10")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(575) : error 033: array must be indexed (variable "Textdraw11")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(580) : error 033: array must be indexed (variable "Textdraw12")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(585) : error 033: array must be indexed (variable "Textdraw13")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(590) : error 033: array must be indexed (variable "Textdraw14")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(595) : error 033: array must be indexed (variable "Textdraw15")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
14 Errors

PHP код:
CMD:shop(playeridparams[])
{
  
TextDrawShowForPlayer(playeridTextdraw:0);
  
TextDrawShowForPlayer(playeridTextdraw:1);
  
TextDrawShowForPlayer(playeridTextdraw:2);
  
TextDrawShowForPlayer(playeridTextdraw:3);
  
TextDrawShowForPlayer(playeridTextdraw:4);
  
TextDrawShowForPlayer(playeridTextdraw:5);
  
TextDrawShowForPlayer(playeridTextdraw:6);
  
TextDrawShowForPlayer(playeridTextdraw:7);
  
TextDrawShowForPlayer(playeridTextdraw:8);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw9);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw10);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw11);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw12);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw13);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw14);
  
TextDrawShowForPlayer(playeridPlayerText:Textdraw15);
  
  
SelectTextDraw(playerid0xFFFFFFAA);
  return 
1;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
  if(
clickedid == PlayerText:Textdraw9)
  {
    
GivePlayerWeapon(playerid24,40);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
  }
  else if(
clickedid == PlayerText:Textdraw10)
  {
       
GivePlayerWeapon(playerid25,25);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
  }
  else if(
clickedid == PlayerText:Textdraw11)
  {
       
GivePlayerWeapon(playerid34,20);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
  }
  else if(
clickedid == PlayerText:Textdraw12)
  {
     
GivePlayerWeapon(playerid31,60);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
  }
  else if(
clickedid == PlayerText:Textdraw13)
  {
     
GivePlayerWeapon(playerid27,30);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
  }
  else if(
clickedid == PlayerText:Textdraw14)
  {
     
GivePlayerWeapon(playerid4,1);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
  }
  else if(
clickedid == PlayerText:Textdraw15)
  {
     
SetPlayerArmour(playerid40);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought an Armour.");
  }
  return 
1;

Reply
#4

pawn Код:
if(clickedid == PlayerText:Textdraw9)
No need to put PlayerText: while checking.

just do:
pawn Код:
if(clickedid == Textdraw9)
But those are player textdraws so you need to use https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw

Similarly for this
pawn Код:
TextDrawShowForPlayer(playerid, PlayerText:Textdraw9);
Those are player textdraws, so you are required to use PlayerTextDrawShow.
pawn Код:
PlayerTextDrawShow(playerid, Textdraw9);
https://sampwiki.blast.hk/wiki/PlayerTextDrawShow
Reply
#5

Like that?

PHP код:
CMD:shop(playeridparams[])
{
  
TextDrawShowForPlayer(playeridTextdraw:0);
  
TextDrawShowForPlayer(playeridTextdraw:1);
  
TextDrawShowForPlayer(playeridTextdraw:2);
  
TextDrawShowForPlayer(playeridTextdraw:3);
  
TextDrawShowForPlayer(playeridTextdraw:4);
  
TextDrawShowForPlayer(playeridTextdraw:5);
  
TextDrawShowForPlayer(playeridTextdraw:6);
  
TextDrawShowForPlayer(playeridTextdraw:7);
  
TextDrawShowForPlayer(playeridTextdraw:8);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw9);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw10);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw11);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw12);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw13);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw14);
  
PlayerTextDrawShow(playeridPlayerText:Textdraw15);
  
  
SelectTextDraw(playerid0xFFFFFFAA);
  return 
1;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
  if(
clickedid == PlayerText:Textdraw9)
  {
    
GivePlayerWeapon(playerid24,40);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
  }
  else if(
clickedid == PlayerText:Textdraw10)
  {
       
GivePlayerWeapon(playerid25,25);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
  }
  else if(
clickedid == PlayerText:Textdraw11)
  {
       
GivePlayerWeapon(playerid34,20);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
  }
  else if(
clickedid == PlayerText:Textdraw12)
  {
     
GivePlayerWeapon(playerid31,60);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
  }
  else if(
clickedid == PlayerText:Textdraw13)
  {
     
GivePlayerWeapon(playerid27,30);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
  }
  else if(
clickedid == PlayerText:Textdraw14)
  {
     
GivePlayerWeapon(playerid4,1);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
  }
  else if(
clickedid == PlayerText:Textdraw15)
  {
     
SetPlayerArmour(playerid40);
    
SendClientMessage(playerid, -1"{FF9999}[SHOP]: {FFFFFF}You have bought an Armour.");
  }
  return 
1;

.. because
PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(542) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(551) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(552) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(553) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(554) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(555) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(556) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(557) : error 035argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(564) : error 033: array must be indexed (variable "Textdraw9")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(569) : error 033: array must be indexed (variable "Textdraw10")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(574) : error 033: array must be indexed (variable "Textdraw11")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(579) : error 033: array must be indexed (variable "Textdraw12")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(584) : error 033: array must be indexed (variable "Textdraw13")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(589) : error 033: array must be indexed (variable "Textdraw14")
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(594) : error 033: array must be indexed (variable "Textdraw15")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


14 Errors

Reply
#6

pawn Код:
CMD:shop(playerid, params[])
{
  TextDrawShowForPlayer(playerid, Textdraw:0);
  TextDrawShowForPlayer(playerid, Textdraw:1);
  TextDrawShowForPlayer(playerid, Textdraw:2);
  TextDrawShowForPlayer(playerid, Textdraw:3);
  TextDrawShowForPlayer(playerid, Textdraw:4);
  TextDrawShowForPlayer(playerid, Textdraw:5);
  TextDrawShowForPlayer(playerid, Textdraw:6);
  TextDrawShowForPlayer(playerid, Textdraw:7);
  TextDrawShowForPlayer(playerid, Textdraw:8);

  PlayerTextDrawShow(playerid, Textdraw9[playerid]);
  PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  PlayerTextDrawShow(playerid, Textdraw11[playerid]);
  PlayerTextDrawShow(playerid, Textdraw12[playerid]);
  PlayerTextDrawShow(playerid, Textdraw13[playerid]);
  PlayerTextDrawShow(playerid, Textdraw14[playerid]);
  PlayerTextDrawShow(playerid, Textdraw15[playerid]);

  SelectTextDraw(playerid, 0xFFFFFFAA);
  return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Textdraw9[playerid])
    {
        GivePlayerWeapon(playerid, 24,40);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
    }
    else if(playertextid == Textdraw10[playerid])
    {
        GivePlayerWeapon(playerid, 25,25);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
    }
    else if(playertextid == Textdraw11[playerid])
    {
        GivePlayerWeapon(playerid, 34,20);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
    }
    else if(playertextid == Textdraw12[playerid])
    {
        GivePlayerWeapon(playerid, 31,60);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
    }
    else if(playertextid == Textdraw13[playerid])
    {
        GivePlayerWeapon(playerid, 27,30);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
    }
    else if(playertextid == Textdraw14[playerid])
    {
        GivePlayerWeapon(playerid, 4,1);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
    }
    else if(playertextid == Textdraw15[playerid])
    {
        SetPlayerArmour(playerid, 40);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought an Armour.");
    }
    return 1;
}
Like that^
I dont think so you read my previous post properly.

You must read a documentation based on PlayerTextdraws. And read https://sampwiki.blast.hk/wiki/Errors_List
Reply
#7

I have less errors.

12 now,
PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217loose indentation
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(542) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213tag mismatch
C
:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase


12 Warnings

Reply
#8

pawn Код:
CMD:shop(playerid, params[])
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);

    PlayerTextDrawShow(playerid, Textdraw9[playerid]);
    PlayerTextDrawShow(playerid, Textdraw10[playerid]);
    PlayerTextDrawShow(playerid, Textdraw11[playerid]);
    PlayerTextDrawShow(playerid, Textdraw12[playerid]);
    PlayerTextDrawShow(playerid, Textdraw13[playerid]);
    PlayerTextDrawShow(playerid, Textdraw14[playerid]);
    PlayerTextDrawShow(playerid, Textdraw15[playerid]);

    SelectTextDraw(playerid, 0xFFFFFFAA);
    return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Textdraw9[playerid])
    {
        GivePlayerWeapon(playerid, 24,40);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
    }
    else if(playertextid == Textdraw10[playerid])
    {
        GivePlayerWeapon(playerid, 25,25);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
    }
    else if(playertextid == Textdraw11[playerid])
    {
        GivePlayerWeapon(playerid, 34,20);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
    }
    else if(playertextid == Textdraw12[playerid])
    {
        GivePlayerWeapon(playerid, 31,60);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
    }
    else if(playertextid == Textdraw13[playerid])
    {
        GivePlayerWeapon(playerid, 27,30);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
    }
    else if(playertextid == Textdraw14[playerid])
    {
        GivePlayerWeapon(playerid, 4,1);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
    }
    else if(playertextid == Textdraw15[playerid])
    {
        SetPlayerArmour(playerid, 40);
        SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought an Armour.");
    }
    return 1;
}
Why have you put : in the textdraw vars. You should really look around for basics of PAWN.
Do you even read my previous posts, rather just askig for a straight solution.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)