C:\Users\Owner\Desktop\larp.pwn(81682) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81683) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81684) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81684) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81685) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81685) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81686) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81686) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81687) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81687) : warning 213: tag mismatch C:\Users\Owner\Desktop\larp.pwn(81688) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Warnings.
stock CreatePermObject(Object,Float:x,Float:y,Float:z,Float:Angle)
{
new Float:car
for(new h = 184; h < sizeof(Object1); h++)
{
if(Object1[h][obp] == 1)
{
car = h + 1;
}
}
Object1[car][obp] = 1;
Object1[car][oid] = Object;
Object1[car][obx] = x;
Object1[car][oby] = y;
Object1[car][obz] = z-0.7;
Object1[car][orx] = Angle;
Object1[car][obj] = CreateDynamicObject(Object, x, y, z-0.9, 0, 0, Angle);
return 0;
}
enum oinfo
{
oid,
obx,
oby,
obz,
orx,
obj,
obp,
};
new Object1[10][oinfo];
|
public LoadObjects() { new arrCoords[6][64]; new strFromFile2[256]; new File: file = fopen("LARP/object.txt", io_read); if (file) { new idx while (idx < sizeof(Object1)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); Object1[idx][oid] = strval(arrCoords[0]); Object1[idx][obx] = strval(arrCoords[1]); Object1[idx][oby] = strval(arrCoords[2]); Object1[idx][obz] = strval(arrCoords[3]); Object1[idx][orx] = strval(arrCoords[4]); Object1[idx][obp] = strval(arrCoords[5]); Object1[idx][obj] = CreateDynamicObject(Object1[idx][oid],Object1[idx][obx],Object1[idx][oby],Object1[idx][obz],Object1[idx][orx],0,0); idx++; } printf("[SCRIPT]: Loaded %d Objects", idx); fclose(file); } return 1; } |
new Float:car;
new car;
new Object1[10][oinfo];
new Float:Object1[10][oinfo];