24.11.2009, 12:40
Quote:
Originally Posted by [SFP
$ucr3 « ]
Quote:
Quote:
Quote:
|
Originally Posted by [SFP
$ucr3 « ]
Quote:
Quote:
Quote:
|
Originally Posted by djlobo
topico colocado com fixo.
|
Originally Posted by CyNiC_
pawn Код:
|
#include <a_npc>
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(97) : error 021: symbol already defined: "OnPlayerSpawn"
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "MeuPrimeiroNPCVehicle"
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gArmySpawns"
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gPoliceSpawns"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(97) : error 021: symbol already defined: "OnPlayerSpawn"
C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "MeuPrimeiroNPCVehicle" C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gArmySpawns" C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gMedicalSpawns" C:\Documents and Settings\Rafael\Desktop\server de testes\gamemodes\grandlarc.pwn(502) : warning 203: symbol is never used: "gPoliceSpawns" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#define RECORDING "passeio" //nome do recording no caso o meu eh taxi
#define RECORDING_TYPE 1 // 1 pq eh de carro 2 se for ape
new taxi;
public OnFilterScriptInit()
{
print("NPC Teste");
// NPCS
ConnectNPC("passeio","passeio"); //se voce for botar mais eh so botar ConnectNPC("---","-----"); denovo
taxi = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 6, 6, 5000); // bote o carro ae mesmo nao vai muda nada
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "passeio", true)) //aqui vc bota o nome do seu npc
{
PutPlayerInVehicle(playerid, taxi, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
return 1;
}
return 1;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "passeio", true)) //aqui vc bota o nome do seu npc
{
PutPlayerInVehicle(playerid, taxi, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
return 1;
}
}
return 0;
}