It dosnt work!
#1

pawn Код:
new gStoredPos[MAX_PLAYERS];

StorePlayerPos(playerid)
{
gStoredPos[playerid] = GetPlayerPos(playerid);
}

SetPlayerPosToStoredPos(playerid)
{
SetPlayerPos(playerid, gStoredPos[playerid]);
}

StorePlayerPos(playerid);
SetPlayerPosToStoredPos(playerid);
why is this not working ??
Reply
#2

im getting this

Код:
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm21.pwn(83) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm21.pwn(83) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Pawel\Pulpit\DMSERV~1\GAMEMO~1\lvdm21.pwn(83) : warning 202: number of arguments does not match definition
Reply
#3

pawn Код:
new Float:gStoredPos[MAX_PLAYERS][3];

StorePlayerPos(playerid)
{
  GetPlayerPos(playerid, gStoredPos[playerid][0], gStoredPos[playerid][1], gStoredPos[playerid][2]);
}

SetPlayerPosToStoredPos(playerid)
{
  SetPlayerPos(playerid, gStoredPos[playerid][0], gStoredPos[playerid][1], gStoredPos[playerid][2]);
}
Reply
#4

i used script at the top and in my spawn i did:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(ONWG[playerid] == 1)
    {
        SetPlayerPosToStoredPos(playerid);
        SetPlayerSkinToStoredSkin(playerid);
        ONWG[playerid] = 0;
        SetPlayerInterior(playerid,15);
    }
  PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
    SetPlayerInterior(playerid,0);
    SetPlayerRandomSpawn(playerid);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
}
the skin gets set but the position has no effect the guy goes to random spawn even that he is ON‌WG = 1
Reply
#5

i tried this aswell

pawn Код:
SetPlayerPos(playerid, gStoredPos[playerid][0], gStoredPos[playerid][1], gStoredPos[playerid][2]);
and the effect is the same :/ ONWG is 1 for 100% because the skin is changing etc but not the position
Reply
#6

When do you store the pos?
Reply
#7

when you type /dolacz and when you die in the position from the command u should get the position back
Reply
#8

is the any other way to store and load player position because this one its done fine but its not working :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)