Streamer Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Streamer Problem (
/showthread.php?tid=350106)
Streamer Problem -
Black Axe - 11.06.2012
PHP код:
public LoadTrunk()
{
new arrCoords[13][64];
new strFromFile2[256];
new File: file = fopen("trunk.cfg", io_read);
if (file)
{
new idx = 1;
while (idx < sizeof(CarInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
vehTrunk[idx][1] = strval(arrCoords[0]);
vehTrunkAmmo[idx][1] = strval(arrCoords[1]);
vehTrunk[idx][2] = strval(arrCoords[2]);
vehTrunkAmmo[idx][2] = strval(arrCoords[3]);
vehTrunk[idx][3] = strval(arrCoords[4]);
vehTrunkAmmo[idx][3] = strval(arrCoords[5]);
vehTrunk[idx][4] = strval(arrCoords[6]);
vehTrunkAmmo[idx][4] = strval(arrCoords[7]);
vehTrunkCounter[idx] = strval(arrCoords[8]);
vehTrunkArmour[idx] = floatstr(arrCoords[9]);
idx++;
}
}
return 1;
}
Each time i add this code the streamer doesn't load..
And it give me this error in the Console..
PHP код:
*** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
Well.. It's not something with the streamer - Cause it works fine when i remove the code.. and i've re-added the latest files of the streamer.. so.. what's wrong ?
Re: Streamer Problem - HuSs3n - 11.06.2012
you dont have the right version of the .inc file
Re: Streamer Problem -
Jhero - 11.06.2012
Make sure you use
BOTH .inc and plugins from the package, if you did so it should work perfectly fine. But this is related to the streamer because either the plugins used or the .inc used to compile the script were from different packages, one of them may be outdated so you need to update both.
Re: Streamer Problem -
Black Axe - 11.06.2012
Bro.. Can you read ?
Quote:
and i've re-added the latest files of the streamer
|
@Jhero - Just re-installed the Streamer and extracted all it's files but still..
- Under OnGameModeInIt I have LoadTrunk(); - Once i remove that line everything works fine.
Re: Streamer Problem -
Jhero - 11.06.2012
pawn Код:
*** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
If your receiving the error, something is outdated. It's simple, I don't believe that something in your script is causing the issue unless you didn't code something correctly.
Re: Streamer Problem -
Black Axe - 11.06.2012
Then Why each time i just remove
the script works fine - And i use the streamer everywhere + All my objects are using CreateDynamicObject... It never gived me this error before only when i added
..
Re: Streamer Problem -
CoaPsyFactor - 11.06.2012
hey man, I didn't read what is problem, but I see you are using split function, why don't you try sscanf, its easier and simplified