strange error..... - 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: strange error..... (
/showthread.php?tid=316556)
strange error..... -
_ReloadeD_ - 07.02.2012
error: "error 047: array sizes do not match, or destination array is too small"
The line: PlayerInfo[ playerid ][ pClan ] = "None";
I don't understand why there are a problem.....
I did pClan[256] in the enum......
help plis
Re: strange error..... - T0pAz - 07.02.2012
pawn Код:
format(PlayerInfo[playerid][pClan], 256, "None"); // It's not the most efficient way.
Re: strange error..... -
_ReloadeD_ - 07.02.2012
But why it's not working in my way?
Re: strange error..... - T0pAz - 07.02.2012
Quote:
Originally Posted by HITMANBOY
But why it's not working in my way?
|
Because there are no string datatype on PAWN. It is behaving as the char which can consist only one character.
Re: strange error..... -
Madd Kat - 07.02.2012
try
pawn Код:
strcpy(PlayerInfo[ playerid ][ pClan ], "None",256);
Re: strange error..... -
_ReloadeD_ - 07.02.2012
ohhh ok....
and I have more 1 error:
error: error 017: undefined symbol "equal"
line: if(DOF2_FileExists(USER_FILE(i)) && equal(PlayerInfo[ i ][ pClan ],ClanName,true))
equal is a safe word not?
Re: strange error..... -
Madd Kat - 07.02.2012
well im not sure as im new to pawn and samp but it looks like its a function that is not been defined yet.
Re: strange error..... - T0pAz - 07.02.2012
pawn Код:
if(DOF2_FileExists(USER_FILE(i)) && strcmp(PlayerInfo[ i ][ pClan ],ClanName) == 0)
Re: strange error..... -
thimo - 07.02.2012
The symbol is not defined and has no function. Delete the part if you can