[POMOC] Kreiranje NPC-a Errori

Započeo |Xeptic| Führer, Jul 01, 2011, 20:08:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristm:LARP
Opis Problema:Pa radio sam po ovome http://balkan-samp.com/forum/index.php?topic=1868.0 u Filterscriptu sam stavio i nece
Dio skripte:

[b]C:\Users\ADMIN\Desktop\TEST\Server\Novi server\TEST\gamemodes\NPC.pwn(67) : error 017: undefined symbol "MyFirstNPCVehicle"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.[/b]


Na pocetak sam stavio new MyFirstNPCVehicle;
Al isto error

67. Linija
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);


Citat: [TG]$--L84S--$ poslato Jul 02, 2011, 01:13:35 PRE PODNE
Jednostavno stavi new MyFirstNPCVehicle;

Evo da vidis jos jednom sta je napisao :

CitatNa pocetak sam stavio new MyFirstNPCVehicle;

Citat: EM|Nxidza poslato Jul 02, 2011, 01:14:54 PRE PODNE
Citat: [TG]$--L84S--$ poslato Jul 02, 2011, 01:13:35 PRE PODNE
Jednostavno stavi new MyFirstNPCVehicle;

Evo da vidis jos jednom sta je napisao :

CitatNa pocetak sam stavio new MyFirstNPCVehicle;
Moja greska nisam procitao do kraja.
probaj ovaj di ostaviti ovako public OnPlayerSpawn(playerid)
{
 if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
 {
   new MyFirstNPCVehicle, npcname[MAX_PLAYER_NAME];
   GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
   if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
   {
     PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
   }
   return 1;
 }
 //Other stuff for normal players goes here!
 return 1;
}

Poslednja Izmena: Jul 02, 2011, 01:25:18 PRE PODNE od [TG]$--L84S--$