30.12.2012, 09:16
Here you can see the error :
Here is the problem
PHP код:
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1027) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1028) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1029) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1030) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1032) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1033) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1034) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1035) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1036) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1037) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1038) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1039) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1041) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1042) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1043) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1048) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1048) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1049) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1049) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1050) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1050) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1050) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1050) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1050) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1051) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1051) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1051) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1051) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1051) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1056) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1057) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1058) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1059) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1060) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1061) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1062) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1063) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1064) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1065) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1066) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1067) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1068) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1069) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1070) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1071) : warning 213: tag mismatch
C:\Users\Eigenaar\Desktop\Roleplay Base Script\gamemodes\hrp.pwn(1072) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
46 Warnings.
PHP код:
CMD:createhouse(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 4)
return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
new price, level, id, int, world, string[128], Float:Xi, Float:Yi, Float:Zi, inti;//All the new defines we will need.
if(sscanf(params, "dddfff", price, level, inti, Xi, Yi, Zi)) return SendClientMessage(playerid, COLOR_GREY, "Syntax: /createhouse [price] [level] [interior] [X] [Y] [Z]");//d stands for integer, f stands for float.
if(level < 0 || level > 10) return SendClientMessage(playerid, COLOR_GREY, "Syntax: Type cannot go below 0, or above 10.");//
if(price < 50000) return SendClientMessage(playerid, COLOR_GREY, "Syntax: Price cannot go below $50,000.");// Check if the price is below 1000, if it is it will return a message saying it.
for(new h = 1;h < sizeof(HouseInfo);h++)//Loops through all the businesses
{
if(HouseInfo[h][hPrice] == 0)//Checks if the price of a business is 0.
{
id = h;
break;//It stops looping if it is.
}
}
new Float:XX,Float:YY,Float:ZZ,Float:AA;//More new defines.
GetPlayerPos(playerid, XX, YY, ZZ);//Gets your player position, and saves it into floats.
GetPlayerFacingAngle(playerid, AA);//Gets your facing angle, and saves it into a float.
int = GetPlayerInterior(playerid);//Gets your interior, and saves it into a integer.
world = GetPlayerVirtualWorld(playerid);//Gets your Virtual World, and saves it into a integer
HouseInfo[id][bInsideInt] = inti; // 1027 [COLOR="Black"]<--------------------------------------------------[/COLOR]
HouseInfo[id][bExitX] = Xi;
HouseInfo[id][bExitY] = Yi;
HouseInfo[id][bExitZ] = Zi;
HouseInfo[id][bOwned] = 0;
HouseInfo[id][bPrice] = price;
HouseInfo[id][bType] = level;
HouseInfo[id][bEntranceX] = XX;
HouseInfo[id][bEntranceY] = YY;
HouseInfo[id][bEntranceZ] = ZZ;
HouseInfo[id][bEntranceA] = AA;
HouseInfo[id][bLocked] = 1;
HouseInfo[id][bInt] =int;
HouseInfo[id][bWorld] =world;
HouseInfo[id][bInsideWorld] =id;
format(string, sizeof(string), "None");
strmid(BusinessInfo[id][bName], string, 0, strlen(string), 255);
if(HouseInfo[id][bOutsideIcon]) DestroyDynamicPickup(HouseInfo[id][bOutsideIcon]);
if(HouseInfo[id][bInsideIcon]) DestroyDynamicPickup(HouseInfo[id][bInsideIcon]);
HouseInfo[id][bOutsideIcon] = CreateDynamicPickup(1272, 1, HouseInfo[id][bEntranceX], HouseInfo[id][bEntranceY], HouseInfo[id][bEntranceZ], HouseInfo[id][bWorld]);//Creates a pickup at your location
HouseInfo[id][bInsideIcon] = CreateDynamicPickup(1272, 1, HouseInfo[id][bExitX], HouseInfo[id][bExitY], HouseInfo[id][bExitZ], HouseInfo[id][bInsideWorld]);//Creates a pickup at your location
new file4[40];
format(file4, sizeof(file4), HPATH, id);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteInt(File,"hOwned", BusinessInfo[id][hOwned]);
INI_WriteInt(File,"hPrice", BusinessInfo[id][hPrice]);
INI_WriteString(File,"hOwner", BusinessInfo[id][hOwner]);
INI_WriteInt(File,"hLevel", BusinessInfo[id][hLevel]);
INI_WriteInt(File,"hLocked", BusinessInfo[id][hLocked]);
INI_WriteFloat(File,"hEntranceX", BusinessInfo[id][hEntranceX]);
INI_WriteFloat(File,"hEntranceY", BusinessInfo[id][hEntranceY]);
INI_WriteFloat(File,"hEntranceZ", BusinessInfo[id][hEntranceZ]);
INI_WriteFloat(File,"hEntranceA", BusinessInfo[id][hEntranceA]);
INI_WriteFloat(File,"hExitX", BusinessInfo[id][hExitX]);
INI_WriteFloat(File,"hExitY", BusinessInfo[id][hExitY]);
INI_WriteFloat(File,"hExitZ", BusinessInfo[id][hExitZ]);
INI_WriteFloat(File,"hExitA", BusinessInfo[id][hExitA]);
INI_WriteInt(File,"hInt", BusinessInfo[id][hInt]);
INI_WriteInt(File,"hWorld", BusinessInfo[id][hWorld]);
INI_WriteInt(File,"hInsideInt", BusinessInfo[id][hInsideInt]);
INI_WriteInt(File,"hInsideWorld", BusinessInfo[id][hInsideWorld]); [COLOR="Black"]// 1072 <======================[/COLOR]
INI_Close(File);
return 1;
}