Raven's RP errors - 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: Raven's RP errors (
/showthread.php?tid=587712)
Raven's RP errors -
Brys - 02.09.2015
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 021: symbol 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 (c) 1997-2006, ITB CompuPhase
26 Errors.
Re: Raven's RP errors -
kyriakos587 - 02.09.2015
Send the codes pls only the line errors
Re: Raven's RP errors -
Brys - 02.09.2015
First two errors:
PHP код:
BusrouteEast[playerid][0] = 0;
BusrouteWest[playerid][0] = 0;
}
public GateClose(playerid)
{
MoveDynamicObject(pdgate1,1589.053344,-1638.123168,14.122960, 0.97);
PlayerPlaySound(playerid, 1153, 1589.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;
}
Re: Raven's RP errors -
kyriakos587 - 02.09.2015
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
Re: Raven's RP errors -
Brys - 02.09.2015
Does it matter if I made every string [500]?
Re: Raven's RP errors -
kyriakos587 - 02.09.2015
You have to made it... just do it and tell me if work or i will see what can i do
Re: Raven's RP errors -
Brys - 02.09.2015
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}},
Re: Raven's RP errors -
kyriakos587 - 02.09.2015
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
Re: Raven's RP errors -
Brys - 02.09.2015
Alright I replaced it to the leaated atreamer.inc version... workes anyway thanks for helping

+1 rep
Re: Raven's RP errors -
kyriakos587 - 02.09.2015
Thanks , no problem ...
Rep too