Problem with command /startnpc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with command /startnpc (
/showthread.php?tid=316161)
Problem with command /startnpc -
Gumica - 05.02.2012
I'm trying to make /startnpc command, but I get those errors:
Код:
C:\Documents and Settings\Korisnik\Desktop\gsdfsd\samp03dsvr_R2-800p_win32\npcmodes\Nedac.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Korisnik\Desktop\gsdfsd\samp03dsvr_R2-800p_win32\npcmodes\Nedac.pwn(10) : error 017: undefined symbol "OnRecordingPlaybackEnd"
C:\Documents and Settings\Korisnik\Desktop\gsdfsd\samp03dsvr_R2-800p_win32\npcmodes\Nedac.pwn(10) : error 017: undefined symbol "StartRecordingPlayback"
C:\Documents and Settings\Korisnik\Desktop\gsdfsd\samp03dsvr_R2-800p_win32\npcmodes\Nedac.pwn(10) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Here is my code:
pawn Код:
#define RECORDING "Nedac" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
#include <a_samp>
#include <a_npc>
main(){}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/start", true)) {
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
}
return 0;
}