12.08.2010, 17:07
Hi there, I am having a little problem with my sscanf line to login. I am getting an error that
And here is my sscanf code.
I can't figure out why, can someone help please.
pawn Код:
error 006: must be assigned to an array
pawn Код:
sscanf(line, "p<|>s[50]s[50]dddds[50]ds[50]", Data[0], Data[1], Data2[0], Data2[1], Data2[2], Data2[3], Data[3], Data2[4], Data[4]);
SetPVarInt(playerid, "Kills", Data2[0]);
SetPVarInt(playerid, "Deaths", Data2[1]);
SetPlayerScore(playerid, Data2[2]);
SetPVarInt(playerid, "MoneyGaved", Data2[3]);
PlayerInfo[playerid][Admin] = Data2[4];
PlayerInfo[playerid][Gender] = Data[4]; //Error right here
SendClientMessage(playerid, ORANGE, "SERVER: Successfully logged in!");