30.12.2010, 14:55
pawn Код:
warning 219: local variable "X" shadows a variable at a preceding level
warning 219: local variable "Y" shadows a variable at a preceding level
warning 219: local variable "Z" shadows a variable at a preceding level
error 035: argument type mismatch (argument 2)
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 203: symbol is never used: "Z"
warning 203: symbol is never used: "Y"
warning 203: symbol is never used: "X"
Code:
pawn Код:
case 1:
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerInfo[playerid][X1] = X;
PlayerInfo[playerid][Y1] = Y;
PlayerInfo[playerid][Z1] = Z;
dini_IntSet(file, "Money", GetPlayerCash(playerid));
dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel]);
dini_IntSet(file, "Frank",PlayerInfo[playerid][pFrank]);
dini_IntSet(file, "Interior",PlayerInfo[playerid][pInterior]);
dini_IntSet(file, "Skin",GetPlayerSkin(playerid));
dini_IntSet(file, "Faction",PlayerInfo[playerid][pFaction]);
dini_IntSet(file, "Sex",PlayerInfo[playerid][pGender]);
dini_FloatSet(file, "Posx",PlayerInfo[playerid][X1]);
dini_FloatSet(file, "Posy",PlayerInfo[playerid][Y1]);
dini_FloatSet(file, "Posz",PlayerInfo[playerid][Z1]);
}