27.10.2009, 15:29
this is from a tutorial this code ok.
then why i get this errors when i compile??
bytheway this is a part of my script where i put that code from that tutorial
plz i need help
Код:
public OnGameModeInit() { print("my gamemode"); ConnectNPC("MyFirstNPC","mynpc"); return 1; }
Код:
C:\PROGRA~1\ROCKST~1\SERVER~1.3AR\GAMEMO~1\Sfinx_17.pwn(39) : error 021: symbol already defined: "OnGameModeInit" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
public OnGameModeInit() { print("my gamemode"); ConnectNPC("MyFirstNPC","mynpc"); return 1; } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Freeroam fun server"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // CJ Skin SetGravity(0.008); SetWorldTime(2); //Ora globului San Andreas SetWeather(11); // Vremea