05.02.2012, 17:04
I'm trying to make /startnpc command, but I get those errors:
Here is my code:
Код:
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.
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;
}