Where do i put this? -
Glossy42O - 12.04.2015
PHP код:
Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 9.500000, 210.437500, "Deagle");
PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw9[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw9[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw9[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw9[playerid], true);
Textdraw10[playerid] = CreatePlayerTextDraw(playerid, 6.000000, 240.187500, "Shotgun");
PlayerTextDrawLetterSize(playerid, Textdraw10[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw10[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw10[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw10[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw10[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw10[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw10[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw10[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw10[playerid], true);
Textdraw11[playerid] = CreatePlayerTextDraw(playerid, 6.000000, 270.375000, "Sniper");
PlayerTextDrawLetterSize(playerid, Textdraw11[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw11[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw11[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw11[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw11[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw11[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw11[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw11[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw11[playerid], true);
Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 8.000000, 296.187500, "M4");
PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw12[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw12[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw12[playerid], true);
Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 6.500000, 322.875000, "Spas");
PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw13[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw13[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw13[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw13[playerid], true);
Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 5.000000, 352.187500, "Knife");
PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw14[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw14[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw14[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw14[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw14[playerid], true);
Textdraw15[playerid] = CreatePlayerTextDraw(playerid, 2.500000, 379.750000, "Armour");
PlayerTextDrawLetterSize(playerid, Textdraw15[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw15[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw15[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, Textdraw15[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw15[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw15[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw15[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw15[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw15[playerid], true);
Re: Where do i put this? -
De4dpOol - 12.04.2015
Place it under
OnPlayerConnect.
pawn Код:
public OnPlayerConnect(playerid)
{
//here
return 1;
}
Re: Where do i put this? -
Glossy42O - 12.04.2015
PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(551) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(552) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(553) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(554) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(555) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(556) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(557) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(558) : error 035: argument 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 (c) 1997-2006, ITB CompuPhase
14 Errors.
PHP код:
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);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw9);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw10);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw11);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw12);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw13);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw14);
TextDrawShowForPlayer(playerid, PlayerText:Textdraw15);
SelectTextDraw(playerid, 0xFFFFFFAA);
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == PlayerText:Textdraw9)
{
GivePlayerWeapon(playerid, 24,40);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
}
else if(clickedid == PlayerText:Textdraw10)
{
GivePlayerWeapon(playerid, 25,25);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
}
else if(clickedid == PlayerText:Textdraw11)
{
GivePlayerWeapon(playerid, 34,20);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
}
else if(clickedid == PlayerText:Textdraw12)
{
GivePlayerWeapon(playerid, 31,60);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
}
else if(clickedid == PlayerText:Textdraw13)
{
GivePlayerWeapon(playerid, 27,30);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
}
else if(clickedid == PlayerText:Textdraw14)
{
GivePlayerWeapon(playerid, 4,1);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
}
else if(clickedid == PlayerText:Textdraw15)
{
SetPlayerArmour(playerid, 40);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought an Armour.");
}
return 1;
}
Re: Where do i put this? -
Gammix - 12.04.2015
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
Re: Where do i put this? -
Glossy42O - 12.04.2015
Like that?
PHP код:
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, PlayerText:Textdraw9);
PlayerTextDrawShow(playerid, PlayerText:Textdraw10);
PlayerTextDrawShow(playerid, PlayerText:Textdraw11);
PlayerTextDrawShow(playerid, PlayerText:Textdraw12);
PlayerTextDrawShow(playerid, PlayerText:Textdraw13);
PlayerTextDrawShow(playerid, PlayerText:Textdraw14);
PlayerTextDrawShow(playerid, PlayerText:Textdraw15);
SelectTextDraw(playerid, 0xFFFFFFAA);
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == PlayerText:Textdraw9)
{
GivePlayerWeapon(playerid, 24,40);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Deagle.");
}
else if(clickedid == PlayerText:Textdraw10)
{
GivePlayerWeapon(playerid, 25,25);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Shotgun.");
}
else if(clickedid == PlayerText:Textdraw11)
{
GivePlayerWeapon(playerid, 34,20);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Sniper.");
}
else if(clickedid == PlayerText:Textdraw12)
{
GivePlayerWeapon(playerid, 31,60);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a M4.");
}
else if(clickedid == PlayerText:Textdraw13)
{
GivePlayerWeapon(playerid, 27,30);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Spas.");
}
else if(clickedid == PlayerText:Textdraw14)
{
GivePlayerWeapon(playerid, 4,1);
SendClientMessage(playerid, -1, "{FF9999}[SHOP]: {FFFFFF}You have bought a Knife.");
}
else if(clickedid == PlayerText:Textdraw15)
{
SetPlayerArmour(playerid, 40);
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 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(542) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(551) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(552) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(553) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(554) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(555) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(556) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(557) : error 035: argument 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 (c) 1997-2006, ITB CompuPhase
14 Errors.
Re: Where do i put this? -
Gammix - 12.04.2015
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
Re: Where do i put this? -
Glossy42O - 12.04.2015
I have less errors.
12 now,
PHP код:
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(305) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(381) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(524) : warning 217: loose indentation
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(542) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(543) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(544) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(545) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(546) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(547) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(548) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(549) : warning 213: tag mismatch
C:\Users\yan\Desktop\Los santos GW\gamemodes\VFGW.pwn(550) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Warnings.
Re: Where do i put this? -
Gammix - 13.04.2015
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.