Streamer Problem
#1

PHP код:
public LoadTrunk()
{
    new 
arrCoords[13][64];
    new 
strFromFile2[256];
    new 
Filefile fopen("trunk.cfg"io_read);
    if (
file)
    {
        new 
idx 1;
        while (
idx sizeof(CarInfo))
        {
            
fread(filestrFromFile2);
            
split(strFromFile2arrCoords',');
            
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 (0does 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 ?
Reply
#2

you dont have the right version of the .inc file
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply
#6

Then Why each time i just remove
PHP код:
LoadTrunk(); 
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
PHP код:
LoadTrunk(); 
..
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)