SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 13/06/2010, 04:48 AM   #1
HIDAN
Newbie
 
HIDAN's Avatar
 
Join Date: Aug 2009
Posts: 0
Reputation: 0
Default [help] AttachObjectToPlayer

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

Почему?(
HIDAN is offline   Reply With Quote
Old 13/06/2010, 05:20 AM   #2
nazarOFF
Little Clucker
 
Join Date: Jan 2010
Posts: 2
Reputation: 0
Default Re: [help] AttachObjectToPlayer

vmesto new object: armadm; postav' new armadm;
nazarOFF is offline   Reply With Quote
Old 13/06/2010, 09:04 AM   #3
BaRRyS3R
Little Clucker
 
Join Date: Aug 2008
Posts: 43
Reputation: 0
Default Re: [help] AttachObjectToPlayer

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;
}
BaRRyS3R is offline   Reply With Quote
Old 13/06/2010, 08:24 PM   #4
HIDAN
Newbie
 
HIDAN's Avatar
 
Join Date: Aug 2009
Posts: 0
Reputation: 0
Default Re: [help] AttachObjectToPlayer

Спасибо)
HIDAN is offline   Reply With Quote
Old 13/06/2010, 09:20 PM   #5
HIDAN
Newbie
 
HIDAN's Avatar
 
Join Date: Aug 2009
Posts: 0
Reputation: 0
Default Re: [help] AttachObjectToPlayer

trouble solved :P
HIDAN is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help]AttachObjectToPlayer sushihusi Help Archive 4 05/05/2010 02:02 PM
attachobjecttoplayer 0ne Help Archive 13 19/04/2010 04:08 PM
AttachObjectToPlayer sushihusi Help Archive 3 15/02/2010 06:18 PM
about AttachObjectToPlayer help! Sfinx_17 Help Archive 8 23/08/2009 04:15 PM
AttachObjectToPlayer Problem - I really need help! :( stieben Help Archive 4 06/02/2009 03:16 PM


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.