CRIANDO NPC
#5

ajeitei e ficou assim

PHP код:
#include <a_samp>
#include <a_npc>
new aviaonpc;
public 
OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("aviao");
    
AddPlayerClass(0,1989.14086914,-2593.35913086,12.54687500269.1425000000);
    print(
"aviao connectado");
    
ConnectNPC("aviao","aviao");
    
aviaonpc CreateVehicle(592, -69.6176,2505.2476,17.20850.000,500);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
  if(
IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
  
{
    new 
npcname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnpcnamesizeof(npcname)); //Obtendo o nome do(s) NPC(s).
    
if(!strcmp(npcname"aviao"true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    
{
      
PutPlayerInVehicle(playeridaviaonpc0); //Colocar o NPC dentro do veнculo que criamos para isso.
    
}
  return 
1;

mais deu esse erro

PHP код:
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(29) : warning 217loose indentation
C
:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(31) : error 030compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply


Messages In This Thread
CRIANDO NPC - by atsbs - 11.09.2011, 21:14
Re: CRIANDO NPC - by Vai_Besta - 11.09.2011, 21:25
Re: CRIANDO NPC - by atsbs - 11.09.2011, 21:27
Re: CRIANDO NPC - by Vai_Besta - 11.09.2011, 21:41
Re: CRIANDO NPC - by atsbs - 11.09.2011, 21:41
Re: CRIANDO NPC - by [O.z]Caroline - 11.09.2011, 21:55
Re: CRIANDO NPC - by atsbs - 11.09.2011, 22:10
Re: CRIANDO NPC - by WLSF - 11.09.2011, 22:22
Re: CRIANDO NPC - by [O.z]Caroline - 11.09.2011, 22:25
Re: CRIANDO NPC - by atsbs - 12.09.2011, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)