Raven's RP errors
#1

Well, I downloaded the Raven's Roleplay gamemode to test it.. just tried to compile it and now I got this, is there a possible way to fix it asap?
errors:
PHP код:
C:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(6544) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(24776) : error 021symbol already defined"strtok"
C:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(24791) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(26305) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(26365) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(26418) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27093) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27152) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27833) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27861) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27872) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(27932) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28223) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28250) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28280) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28288) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28322) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28330) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28363) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28408) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28471) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28529) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28537) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28572) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28580) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28775) : error 047: array sizes do not match, or destination array is too small
C
:\Users\mamou\Desktop\raven\gamemodes\larp.pwn(28829) : error 047: array sizes do not match, or destination array is too small
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors

Reply
#2

Send the codes pls only the line errors
Reply
#3

First two errors:
PHP код:
    BusrouteEast[playerid][0] = 0;
    
BusrouteWest[playerid][0] = 0;
}

public 
GateClose(playerid)
{
      
MoveDynamicObject(pdgate1,1589.053344,-1638.123168,14.1229600.97);
      
PlayerPlaySound(playerid11531589.053344,-1638.123168,14.122960);
      
lspdg 0;
      return 
1;

PHP код:
strtok(const string[], &index)
{
    new 
length strlen(string);
    while ((
index length) && (string[index] <= ' '))
    {
        
index++;
    }

    new 
offset index;
    new 
result[20];
    while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
    {
        
result[index offset] = string[index];
        
index++;
    }
    
result[index offset] = EOS;
    return 
result;

Reply
#4

lol o.O the errors is about strings... like new string[128]; and your message in format(string... below from new string have more than [128] characters... Change it and do it 500
Reply
#5

Does it matter if I made every string [500]?
Reply
#6

You have to made it... just do it and tell me if work or i will see what can i do
Reply
#7

Well, I fixed them now can you help me with this?
Код:
ven's Roleplay 0.3z\pawno\include\streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
line:
PHP код:
    {"The Emerald Isle, Las Venturas",                {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}}, 
Reply
#8

If you want fix it its just warning...

But if you want to fix it.. change hitid and make phitid and then change the others below
Reply
#9

Alright I replaced it to the leaated atreamer.inc version... workes anyway thanks for helping +1 rep
Reply
#10

Thanks , no problem ...
Rep too
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)