You are not logged in.

Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Infinityx3

Beginner

  • "Infinityx3" started this thread

Posts: 10

wcf.user.option.userOption53: Ja

  • Send private message

1

Monday, July 9th 2012, 2:16pm

Sourcemod Plugins laden

servus ,

Ich habe angefangen SourcePawn zu lernen , habe aber ein paar schwierigkeiten. Also ich habe das Tut von Impact angeschaut http://www.youtube.com/watch?v=6F5mLj2f--w&feature=relmfu angeschaut , habe auch alles genauso wie er gemacht aber ich kann die Plugins irgendwie nicht laden. :(

not present; not executing. das ist die Fehlermeldung und ich weiß jetzt nicht wie man die Plugins testen kann. Ich habe übrigens ein Dedic. Server (cmd). Also ich hab alle Commands ausprobiert wie z.B (rcon) exec sm_test / reload usw.

vielen dank schonmal im vorraus^^
Lg Infinity

This post has been edited 1 times, last edit by "Infinityx3" (Jul 9th 2012, 2:51pm)


2

Monday, July 9th 2012, 2:18pm

sm plugins load sm_test ;)

compileiren nicht vergessen

Infinityx3

Beginner

  • "Infinityx3" started this thread

Posts: 10

wcf.user.option.userOption53: Ja

  • Send private message

3

Monday, July 9th 2012, 2:25pm

das funktioniert leider auch irgendwie nicht. Kommt die gleiche Fehlermeldung.

4

Monday, July 9th 2012, 2:31pm

sm_test = NamevomPlugin.smx

also wenn dein Plugin compiliert hast heist es zB:

testplugin.smx

nun gibts in die console:

sm plugins load testplugin

Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

5

Monday, July 9th 2012, 2:37pm

Die Datei die ich da ausführe ist eine eigene Cfg, ich glaube das hatte ich auch mehrmals im Video erwähnt.
Die Datei beinhaltet einfach nur diese 3 Befehle:

Source code

1
2
3
sm plugins unload_all
sm plugins refresh
sm plugins list

Ist für mich um einiges einfacher beim testen ;)

MfG
Impact

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

6

Monday, July 9th 2012, 2:45pm

sm plugins load pluginname
sm plugins reload pluginname
sm plugins unload pluginname

und für extensions:

sm exts load extsname
sm exts unload extsname

Infinityx3

Beginner

  • "Infinityx3" started this thread

Posts: 10

wcf.user.option.userOption53: Ja

  • Send private message

7

Monday, July 9th 2012, 8:08pm

Also bei mir war SM nicht geladen darum ging es nicht big-lol

Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.4.0
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

/home/groups/sourcemod/upload_tmp/phpKcgRXW.sp(6) : fatal error 120: cannot read from file: "basics/basics"

Compilation aborted.
1 Error.

Das ist nun der Fehler der beim compeilen angezeigt wird.
Script :


#include <sourcemod>
#include <cstrike>


new Integer = 15
new bool:Bool: = true
new Float:Floatnumber = 15
new String:Stringvar



public Plugin:myinfo =
{
name = "TEST",
author = "Infinityx3",
description = "<- Description ->",
version = "0.1",
url = "<- URL ->"
}

public OnPluginStart()
{
RegConsoleCmd("sm_test", Command_Test)
}

public Action:Command_Test(client, args)
{
PrintToServer("Integer: %d | Bool: %d | Fload: %f | String: %s". Integer, Bool, Floatnumber, Stringvar)

return Plugin_Handled
}

Wo hab ich dort den Fehler gemacht?^^

Lg Infinity

MadMakz

Super Moderator

Posts: 1,878

Location: ~#

wcf.user.option.userOption53: Ja

  • Send private message

8

Monday, July 9th 2012, 8:13pm

steht exakt in der fehlerbeschreibung.
desweiteren kannst du auf der AM seite/attachements nur plugins kompilieren lassen die keine inkludes von dritten benötigen.


EDIT: nachdem du dein script im post editiert und #include <basics/basics> entfehrnt hast kann dieser fehler nicht mehr auftreten. auserdem bitte code tags beim posten von code benutzen.

This post has been edited 1 times, last edit by "MadMakz" (Jul 9th 2012, 8:18pm)


Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

9

Monday, July 9th 2012, 9:42pm

Basics ist meine eigene Library, dies habe ich aber eigentlich auch im Video erklärt.
Wenn du diese Library nicht hast dann kannst du diese auch nicht includen.
Bitte immer genau zuhören :)

MfG
Impact

Similar threads