dmbekker Geplaatst: 7 mei 2010 Rapport Geplaatst: 7 mei 2010 (bewerkt) probleem opgelost Hoi, asl ik mijn server opstart krijg ik dit SA-MP Dedicated Server ---------------------- v0.3a R7, ©2005-2010 SA-MP Team [22:21:08] [22:21:08] Server Plugins [22:21:08] -------------- [22:21:08] Loaded 0 plugins. [22:21:08] [22:21:08] Ban list [22:21:08] -------- [22:21:08] Loaded: samp.ban [22:21:08] [22:21:08] [22:21:08] Filter Scripts [22:21:08] --------------- [22:21:08] Loaded 0 filter scripts. [22:21:08] Script[gamemodes/filmen.amx]: Run time error 20: "Invalid index parameter (bad entry point)" [22:21:08] Number of vehicle models: 3 wat betekent dit?? mijn code forward Countdown(); new Count; new CountdownTimer; #include <a_samp> #define COLOR_RED 0xFF0000AA public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("david"); AddPlayerClass(127,606.0140,2049.3899,36.5177,20.1028,27,999999,31,999999,24,999999); // startposition david AddPlayerClass(20,606.0140,2049.3899,36.5177,20.1028,31,999999,46,1,9,1); // startposition louis AddPlayerClass(15,606.0140,2049.3899,36.5177,20.1028,46,1,34,1,1,1); // startposition remmy AddStaticVehicle(536,600.6053,2047.9846,36.2944,20.7816,0,1); // spawn plek auto AddStaticVehicle(593,423.6699,2520.9031,16.9478,93.3439,0,1); // dodo location AddStaticVehicle(497,616.0342,2059.0813,37.2235,4.1560,86,73);// heli spawn return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, -1521.6732, 678.3278, 77.6998); SetPlayerCameraPos(playerid, -1526.4078, 682.8280, 74.3854); SetPlayerCameraLookAt(playerid, -1521.6732, 678.3278, 77.6998); return 1; } public OnPlayerSpawn(playerid) { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if ( strcmp( cmd, "/goto", true ) == 0 ) { new tmp[256]; tmp = strtok( cmdtext, idx ); if ( !strlen( tmp ) ) { return 1; } new Float:X, Float:Y, Float:Z; if ( GetPlayerVehicleID( playerid ) ) { GetPlayerPos( strval(tmp), X, Y, Z ); SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z ); } else { GetPlayerPos( strval(tmp), X, Y, Z ); SetPlayerPos( playerid, X+2, Y+2, Z ); } return 1; } if ( strcmp( cmd, "/gethere", true ) == 0 ) { new tmp[256]; tmp = strtok( cmdtext, idx ); if ( !strlen( tmp ) ) { return 1; } new Float:X, Float:Y, Float:Z; if ( GetPlayerVehicleID( strval(tmp) ) ) { GetPlayerPos( playerid, X, Y, Z ); SetVehiclePos( GetPlayerVehicleID(strval(tmp)), X+2, Y+2, Z ); } else { GetPlayerPos( playerid, X, Y, Z ); SetPlayerPos( strval(tmp), X+2, Y+2, Z ); } return 1; } if (strcmp("/wapen", cmdtext, true, 10) == 0) { GivePlayerWeapon(playerid, 9, 999999); GivePlayerWeapon(playerid, 15, 999999); GivePlayerWeapon(playerid, 39, 999999); GivePlayerWeapon(playerid, 24, 999999); GivePlayerWeapon(playerid, 27, 999999); GivePlayerWeapon(playerid, 29, 999999); GivePlayerWeapon(playerid, 31, 999999); GivePlayerWeapon(playerid, 34, 999999); GivePlayerWeapon(playerid, 38, 999999); GivePlayerWeapon(playerid, 46, 1); GivePlayerWeapon(playerid, 40, 999999); return 1; } if (strcmp("/start", cmdtext, true, 10) == 0) { SendClientMessageToAll(COLOR_RED, "***LET OP: Iedereen in zijn positie Louisdji en David in de Blade en Remmy alvast opstijgen met de heli!!!"); return 1; } if (strcmp("/actie", cmdtext, true, 10) == 0) { SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); SendClientMessageToAll(0xFFFFFFAA," "); CountdownTimer = SetTimer("Countdown", 1000, 1); Count = 5; return 1; } if (!strcmp("/repair", cmdtext)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!"); RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!"); return 1; } return 0; } public Countdown() { if(Count == 0) { GameTextForAll("Het filmen is begonnen!", 3000, 6); KillTimer(CountdownTimer); } else { new string[128]; format(string, sizeof(string), "%d", Count); GameTextForAll(string, 1500, 6); Count--; } } stock strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } Sorry dat ik zoveel vragen stel Bewerkt: 8 mei 2010 door dmbekker Reageren
Ophion Geplaatst: 8 mei 2010 Rapport Geplaatst: 8 mei 2010 main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } Probeer dit eens boven OnGameModeInit te zetten. Mvg, Jeroen. Reageren
dmbekker Geplaatst: 8 mei 2010 Auteur Rapport Geplaatst: 8 mei 2010 Solved bedankt voor het helpen Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.