[help] AttachObjectToPlayer
#1

pawn Code:
new object: armadm;
public OnGameModeInit()

{
  armadm = CreateObject(1242,7.77, 7.77, 7.77, 0, 0, 0);
  return 1;
}

public OnPlayerSpawn(playerid)
{

    if(IsPlayerAdmin(playerid)) {
    AttachObjectToPlayer( armadm, playerid, 0, 0, 0, 0, 0, 0 );
    GivePlayerWeapon (playerid,4,1);
    return 1;
    }
    return 1;
}
Untitled.pwn(470) : warning 213: tag mismatch

Почему?(
Reply
#2

vmesto new object: armadm; postav\' new armadm;
Reply
#3

Code:
new armadm;
public OnGameModeInit()

{
  armadm = CreateObject(1242,7.77, 7.77, 7.77, 0, 0, 0);
  return 1;
}

public OnPlayerSpawn(playerid)
{
if(IsPlayerAdmin(playerid)) 
{
AttachObjectToPlayer( armadm, playerid, 0, 0, 0, 0, 0, 0 );
GivePlayerWeapon (playerid,4,1);
}
return 1;
}
Reply
#4

Спасибо)
Reply
#5

trouble solved :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)