Thread: ScriptHook
View Single Post
Old 05-25-2009   #10
Leito
Registered User
Junior Member
 
Leito's Avatar
 
Join Date: Jan 2009
Posts: 54
Leito will become famous soon enoughLeito will become famous soon enoughLeito will become famous soon enoughLeito will become famous soon enoughLeito will become famous soon enoughLeito will become famous soon enough
Hi again. I've got the problem. I have now Windows7 and same Visual C++, but in GTA IV patch 1.3. I pasted your scripts, and when i want to save, i've got errors ;c rappo, what's going on?
PS. sry for double.

Code:
1>------ Build started: Project: SampleCustom, Configuration: Debug Win32 ------
1>Compiling...
2>------ Build started: Project: SampleCustomFiber, Configuration: Debug Win32 ------
2>Compiling...
1>CustomThread.cpp
2>CustomFiberThread.cpp
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2065: 'Ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2146: syntax error : missing ')' before identifier 'ped'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2182: 'TaskPlayAnim' : illegal use of type 'void'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2059: syntax error : ')'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2143: syntax error : missing ';' before '{'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2447: '{' : missing function header (old-style formal list?)
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C2653: 'NativeInvoke' : is not a class or namespace name
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\scripthook\scripting.h(6) : error C3861: 'Invoke': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(31) : error C2065: 'Ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(31) : error C2146: syntax error : missing ';' before identifier 'ped'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(31) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(32) : error C2065: 'Vehicle' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(32) : error C2146: syntax error : missing ';' before identifier 'vehicle'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(32) : error C2065: 'vehicle' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(34) : error C2065: 'ScriptAny' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(34) : error C2146: syntax error : missing ';' before identifier 'unknown'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(34) : error C2065: 'unknown' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(36) : error C2065: 'Player' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(36) : error C2146: syntax error : missing ';' before identifier 'playerIndex'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(36) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(36) : error C3861: 'ConvertIntToPlayerIndex': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(36) : error C3861: 'GetPlayerId': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(37) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(37) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(37) : error C3861: 'GetPlayerChar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(40) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(40) : error C3861: 'GetCharCoordinates': identifier not found
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustomfiber\customfiberthread.cpp(15) : error C3861: 'ConvertIntToPlayerIndex': identifier not found
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustomfiber\customfiberthread.cpp(15) : error C3861: 'GetPlayerId': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(42) : error C2065: 'unknown' : undeclared identifier
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustomfiber\customfiberthread.cpp(21) : error C3861: 'GetPlayerChar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(42) : error C3861: 'GetRandomCarModelInMemory': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(43) : error C2065: 'vehicle' : undeclared identifier
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustomfiber\customfiberthread.cpp(38) : error C3861: 'RequestAnims': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(43) : error C3861: 'CreateCar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(49) : error C2065: 'Player' : undeclared identifier
2>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustomfiber\customfiberthread.cpp(42) : error C3861: 'HaveAnimsLoaded': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(49) : error C2146: syntax error : missing ';' before identifier 'playerIndex'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(49) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(49) : error C3861: 'ConvertIntToPlayerIndex': identifier not found
2>Generating Code...
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(49) : error C3861: 'GetPlayerId': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(50) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(50) : error C3861: 'AddScore': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(58) : error C3861: 'RequestModel': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(69) : error C3861: 'RequestModel': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(80) : error C3861: 'RequestModel': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(90) : error C3861: 'HasModelLoaded': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(94) : error C2065: 'Ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(94) : error C2146: syntax error : missing ';' before identifier 'ped'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(94) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(95) : error C2065: 'Vehicle' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(95) : error C2146: syntax error : missing ';' before identifier 'vehicle'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(95) : error C2065: 'vehicle' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(98) : error C2065: 'Player' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(98) : error C2146: syntax error : missing ';' before identifier 'playerIndex'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(98) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(98) : error C3861: 'ConvertIntToPlayerIndex': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(98) : error C3861: 'GetPlayerId': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(99) : error C2065: 'playerIndex' : undeclared identifier
2>Compiling...
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(99) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(99) : error C3861: 'GetPlayerChar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(101) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(101) : error C3861: 'GetCharCoordinates': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(103) : error C2065: 'vehicle' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(103) : error C3861: 'CreateCar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(105) : error C3861: 'MarkModelAsNoLongerNeeded': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(114) : error C3861: 'HasModelLoaded': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(118) : error C2065: 'Player' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(118) : error C2146: syntax error : missing ';' before identifier 'playerIndex'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(118) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(118) : error C3861: 'ConvertIntToPlayerIndex': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(118) : error C3861: 'GetPlayerId': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(121) : error C2065: 'Ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(121) : error C2146: syntax error : missing ';' before identifier 'ped'
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(121) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(123) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(123) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(123) : error C3861: 'GetPlayerChar': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(124) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(124) : error C3861: 'GetKeyForCharInRoom': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(126) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(126) : error C3861: 'ChangePlayerModel': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(128) : error C2065: 'playerIndex' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(128) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(128) : error C3861: 'GetPlayerChar': identifier not found
2>Main.cpp
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(129) : error C2065: 'ped' : undeclared identifier
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(129) : error C3861: 'SetRoomForCharByKey': identifier not found
1>c:\gta iv - pliki\gta iv - mody i pliki\aru c++\gtaivscripthook_0.2.3\samplecustom\customthread.cpp(131) : error C3861: 'MarkModelAsNoLongerNeeded': identifier not found
1>Build log was saved at "file://c:\GTA IV - Pliki\GTA IV - Mody i Pliki\aru C++\GTAIVScriptHook_0.2.3\SampleCustom\Debug\BuildLog.htm"
1>SampleCustom - 81 error(s), 0 warning(s)
2>Generating Code...
2>Build log was saved at "file://c:\GTA IV - Pliki\GTA IV - Mody i Pliki\aru C++\GTAIVScriptHook_0.2.3\SampleCustomFiber\Debug\BuildLog.htm"
2>SampleCustomFiber - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 1 up-to-date, 0 skipped ==========
__________________
My nick on YT - RyderPL

Last edited by Leito; 05-25-2009 at 03:27 PM..
Leito is offline   Reply With Quote