16.10.2011, 15:27
Ok ill trying to create a vehicle npc but failed tbh i am getting alot of errors so i think its something to do mith my { or } as i always mess them up if you dont mind having a look please do.
Many thanks.
Many thanks.
Код:
ConnectNPC("Captian Dave","area51tank1");//top of the script new MyFirstNPCVehicle;//top of the script public OnGameModeInit() { print("COD5"); ConnectNPC("MyFirstNPC","area51tank1"); { print("COD5"); ConnectNPC("MyFirstNPC","area51tank1"); MyFirstNPCVehicle = CreateVehicle(432, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); { public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(Captian Dave)); if(!strcmp(npcname, "MyFirstNPC", true)) { PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); } return 1; }
Код:
C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(28) : error 021: symbol already defined: "ConnectNPC" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1025) : error 017: undefined symbol "GetPlayerSpeedSpeedo" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1034) : error 017: undefined symbol "IsPlayerInPlane" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1035) : error 017: undefined symbol "GetPlayerSpeedSpeedo" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1036) : error 017: undefined symbol "GetPlayerSpeedSpeedo" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1096) : error 017: undefined symbol "GetPlayerSpeed" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1097) : error 017: undefined symbol "IsPlayerInPlane" C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1105) : error 004: function "SendClientMessageToAdmins" is not implemented C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1144) : error 004: function "MutePlayer" is not implemented C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1270) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(1274) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2242) : error 079: inconsistent return types (array & non-array) C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2246) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2246) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2246) : error 004: function "OnGameModeExit" is not implemented C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2255) : error 079: inconsistent return types (array & non-array) C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2259) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\codmw21\codmw2\gamemodes\COD5.pwn(2259) : error 029: invalid expression, assumed zero