[help] AttachObjectToPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Русский/Russian (
https://sampforum.blast.hk/forumdisplay.php?fid=32)
+---- Thread: [help] AttachObjectToPlayer (
/showthread.php?tid=154270)
[help] AttachObjectToPlayer -
HIDAN - 13.06.2010
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
Почему?(
Re: [help] AttachObjectToPlayer -
nazarOFF - 13.06.2010
vmesto new object: armadm; postav\' new armadm;
Re: [help] AttachObjectToPlayer -
BaRRyS3R - 13.06.2010
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;
}
Re: [help] AttachObjectToPlayer -
HIDAN - 13.06.2010
Спасибо)
Re: [help] AttachObjectToPlayer -
HIDAN - 13.06.2010
trouble solved :P