18.10.2009, 03:34
Ok i found i was using some of the wrong sript stuff, i was using some scriptfile script or w/e but now i have the script for the gamemode and got 3 error's maby this time i can get the right info lol
Error
changed script
Error
Quote:
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1324) : error 021: symbol already defined: "OnGameModeInit" C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1331) : error 021: symbol already defined: "OnGameModeInit" C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1567) : error 021: symbol already defined: "OnPlayerSpawn" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
Quote:
//ConnectNPC("Robert","mynpc"); public OnGameModeInit() { print("sagc1"); ConnectNPC("Robert","mynpc"); return 1; } new MyFirstNPCVehicle; public OnGameModeInit() { print("sagc1"); ConnectNPC("Robert","mynpc"); MyFirstNPCVehicle = CreateVehicle(420,1536.6427,-841.7883,64.4755,266.3878,6,1, 5000); return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "Robert", true)) { PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); } return 1; } return 1; } |