12.04.2015, 06:12
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;
}