[POMOC] Kreiranje NPC-a Errori

1. Jul 2011.
702
pregleda
4
postova
Colombo
4
Enforcer
1. Jul 2011.
Skripta koju koristm:LARP
Opis Problema😛a radio sam po ovome http://balkan-samp.com/forum/index.php?topic=1868.0 u Filterscriptu sam stavio i nece
Dio skripte:
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.


Na pocetak sam stavio new MyFirstNPCVehicle;
Al isto error

67. Linija
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);
Luis
5
Godfather
1. Jul 2011.
Jednostavno stavi
new MyFirstNPCVehicle;
Nxidza
5
Crime Lord
1. Jul 2011.
Quote from July 1, 2011, 11:13 pm:
Jednostavno stavi
new MyFirstNPCVehicle;


Evo da vidis jos jednom sta je napisao :

Quote
Na pocetak sam stavio new MyFirstNPCVehicle;
Luis
5
Godfather
1. Jul 2011.
EM|Nxidza wrote on July 1, 2011, 11:13 pm:
Jednostavno stavi
new MyFirstNPCVehicle;


Evo da vidis jos jednom sta je napisao :

Quote
Na 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;
   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;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha