strange error.....
#1

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
Reply
#2

pawn Код:
format(PlayerInfo[playerid][pClan], 256, "None"); // It's not the most efficient way.
Reply
#3

But why it's not working in my way?
Reply
#4

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

try

pawn Код:
strcpy(PlayerInfo[ playerid ][ pClan ], "None",256);
Reply
#6

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?
Reply
#7

well im not sure as im new to pawn and samp but it looks like its a function that is not been defined yet.
Reply
#8

pawn Код:
if(DOF2_FileExists(USER_FILE(i)) && strcmp(PlayerInfo[ i ][ pClan ],ClanName) == 0)
Reply
#9

The symbol is not defined and has no function. Delete the part if you can
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)