Warning 211 & 204 with OnPlayerSpawn !!
#1

Hello all

I have two warning with my GM, its 211 & 204

I have 3 skin for my GM (only test )
pawn Код:
AddPlayerClass(2,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
AddPlayerClass(22,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
AddPlayerClass(23,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
and this
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    GivePlayerMoney(playerid,1000);

 new skinidi = GetPlayerSkin(playerid);
 if(skinidi = 0)
 {
  switch(random(3))
   {
   case 0 :SetPlayerPos(playerid,1433.0177,1492.2183,10.8422),SendClientMessage(playerid,COLOR_WHITE,"You're in /lva.");
   case 1 :SetPlayerPos(playerid,1838.9441,-1356.9666,13.5625),SendClientMessage(playerid,COLOR_WHITE,"You're in /ls1.");
   case 2 :SetPlayerPos(playerid,1989.5594,1091.2728,10.6719),SendClientMessage(playerid,COLOR_WHITE,"You're in /lv1.");
   }
  }
return 1;
}
Can you show me the problem Coz if i chose a player and pressing Spawn it not spawn he on the place
i want, but one place for ALL not Rand

Thanks a lot
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)