Complicated SetPlayerPos Errors.
#1

Those are My Errors:
Код:
C:\Users\Yuval\Desktop\Server\filterscripts\ServerR.pwn(66) : error 035: argument type mismatch (argument 2)
C:\Users\Yuval\Desktop\Server\filterscripts\ServerR.pwn(67) : error 035: argument type mismatch (argument 2)
This is my Script:
pawn Код:
/*Line66*/SetPlayerPos(playerid, dini_Get(playerfile, "PosX"), dini_Get(playerfile, "PosY"), dini_Get(playerfile, "PosZ"));
/*Line67*/SetPlayerFacingAngle(playerid, dini_Get(playerfile, "RotZ"));

// When the Dini_Get's Get's His Values:

public OnPlayerDisconnect(playerid, reason)
{
    if(logged[playerid] == 1)
    {
        new playerfile[100], pname[MAX_PLAYER_NAME];
        new Float:Xp,Float:Yp,Float:Zp,Float:Ap;
        new X[128],Y[128],Z[128],A[128];
        GetPlayerPos(playerid, Xp,Yp,Zp);
        GetPlayerFacingAngle(playerid, Ap);
        GetPlayerName(playerid, pname, sizeof(pname));
        format(playerfile, sizeof(playerfile), "Users/%s.ini",pname);
        format(X, sizeof(X), "%s", Xp);
        format(Y, sizeof(Y), "%s", Yp);
        format(Z, sizeof(Z), "%s", Zp);
        format(A, sizeof(A), "%s", Ap);
            dini_Set(playerfile, "PosX", X);
            dini_Set(playerfile, "PosY", Y);
            dini_Set(playerfile, "PosZ", Z);
            dini_Set(playerfile, "RotZ", A);
    }
    level[playerid] = 0;
    logged[playerid] = 0;
    return 1;
}
Please Help me
Reply


Messages In This Thread
Complicated SetPlayerPos Errors. - by 4ir-W4ys - 27.08.2011, 20:23
Re: Complicated SetPlayerPos Errors. - by Cyanide - 27.08.2011, 20:26
Re: Complicated SetPlayerPos Errors. - by Whitetiger - 27.08.2011, 20:26
Re: Complicated SetPlayerPos Errors. - by 4ir-W4ys - 27.08.2011, 20:30

Forum Jump:


Users browsing this thread: 2 Guest(s)