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"
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]);
}
new Float:X, Float:Y, Float:Z;
(896) : error 035: argument type mismatch (argument 2)
GetPlayerPos(playerid, X, Y, Z);
pawn Код:
Line 896: pawn Код:
|
case 1:
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
PlayerInfo[playerid][X1] = pX;
PlayerInfo[playerid][Y1] = pY;
PlayerInfo[playerid][Z1] = pZ;
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]);
}
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
PlayerInfo[playerid][X1] = pX;
PlayerInfo[playerid][Y1] = pY;
PlayerInfo[playerid][Z1] = pZ;
dini_FloatSet(file, "pX",PlayerInfo[playerid][X1]);
dini_FloatSet(file, "pY",PlayerInfo[playerid][Y1]);
dini_FloatSet(file, "pX",PlayerInfo[playerid][Z1]);
PlayerInfo[playerid][X1] = dini_Float(file, "pX");
PlayerInfo[playerid][Y1] = dini_Float(file, "pY");
PlayerInfo[playerid][Z1] = dini_Float(file, "pZ");
SetSpawnInfo(playerid, PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][X1], PlayerInfo[playerid][Y1], PlayerInfo[playerid][Z1], 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);