01.01.2013, 23:09
Well, Basically I am trying to make it so that when someone dies they go to hospital, That worked fine!
but then when the time is up after the hospital they are meant to be outside... However the spawn at their joining position.
I then tried an idea of using this;
However this returns the following errors;
Line 1032;
Line 1039;
Any Ideas?
but then when the time is up after the hospital they are meant to be outside... However the spawn at their joining position.
I then tried an idea of using this;
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pHospital] = 0) // Not dead in hospital
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerPos(playerid, PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2]);
SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos][3]);
return 1;
}
else if(PlayerInfo[playerid][pHospital] = 1) //Is dead in hospital
{
SetPlayerPos(playerid, -316.0580, 1052.8657, 20.3318);
return 1;
}
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
Код:
(1032) : warning 211: possibly unintended assignment (1039) : warning 211: possibly unintended assignment
pawn Код:
if(PlayerInfo[playerid][pHospital] = 0) // Not dead in hospital
pawn Код:
else if(PlayerInfo[playerid][pHospital] = 1) //Is dead in hospital