[Blockierte Grafik: http://www.image24.net/uploads/91c1dfa014unbenannt-z.png]
Herzlich Willkommen zur meinem ersten Pawn Tutorial,
in diesem Tutorial möchte ich zeigen wie einfach man mit dem WBB_Connect v2 umgehen kann.
Für alle die nicht wissen was WBB_Connect v2 ist sage ich es schnell, wbb connect ist eine Filterscript/Include das für
eine Verbindung von SA:MP zu Woltlab herstellt. Ich werde Schritt für Schritt erklären wie ihr die Funktionen verwenden könnt.
Als erstes:
Ihr müsst als aller erstes alles Herunterladen. (HIER)
danach zieht ihr alles was im Filterscript Ordner ist in den Filterscript Order von eurem Server.
Danach den Include unter Pawno/Includes einfügen.
Schritt 2:
Ihr müsst nun denn Include in eurer Script laden. Das könnt ihr ganz einfach ganz oben vom Script einbinden. In etwa so:
[pwn]#include <wbb_connect>[/pwn]
Schritt 3:
Nun geht hier erneut in die .rar Datei und nehmt 'wbb_connect_install.php' und 'wbb_connect.zip' raus und zieht sie in das Haupt Verzeichnis
von eurem Woltlab Forum. Dann führt ihr wbb_connect_install.php aus. (eurerforum.de/wbb_connect_install.php)
Am ende dieser Installation bekommt ihr einen AuthCode, diesen müsst ihr euch Aufschreiben!!!! (wird in Schritt nr. 4 benötigt!)
Schritt 4:
Nun geht ihr unter 'OnGameModeInit' und fügt das ein:
[pwn]WBB_Initialize("EURE FORUM ADRESSE", "AUTHKEY");[/pwn]
Schritt 5:
Alle Callbacks ganz unten im Script eintragen!
[pwn]public WBB_GotPostUser ( Index , Username[ ] ) {
return 1;
}
public WBB_GotThreadStarter ( Index , Username[ ] ) {
return 1;
}
public WBB_GotUserActivationCode ( Index , ActivationCode[ ] ) {
return 1;
}
public WBB_GotUserActivationState ( Index , State ) {
return 1;
}
public WBB_GotUserAge ( Index , Age ) {
return 1;
}
public WBB_GotUserFriendState ( Index , State ) {
return 1;
}
public WBB_GotUserGroupState ( Index , State ) {
return 1;
}
public WBB_GotUserID ( Index , UserID ) {
return 1;
}
public WBB_GotUserOnlineState ( Index , State ) {
return 1;
}
public WBB_GotUserPasswordCheckState ( Index , State ) {
return 1;
}
public WBB_GotUserTitle ( Index , Title[ ] ) {
return 1;
}
public WBB_GotUserValidState ( Index , State ) {
return 1;
}
public WBB_OnInitialize ( State ) {
return 1;
}
public WBB_PostAdded ( Index ) {
return 1;
}
public WBB_PostDeleted ( Index ) {
return 1;
}
public WBB_PostEdited ( Index ) {
return 1;
}
public WBB_PostTrashed ( Index ) {
return 1;
}
public WBB_ThreadAdded ( Index , ThreadID ) {
return 1;
}
public WBB_ThreadDeleted ( Index ) {
return 1;
}
public WBB_ThreadSticked ( Index ) {
return 1;
}
public WBB_ThreadUnsticked ( Index ) {
return 1;
}
public WBB_UserAdded ( Index ) {
return 1;
}
public WBB_UserAvatarDisabled ( Index ) {
return 1;
}
public WBB_UserAvatarEnabled ( Index ) {
return 1;
}
public WBB_UserBanned ( Index ) {
return 1;
}
public WBB_UserDisabled ( Index ) {
return 1;
}
public WBB_UserEnabled ( Index ) {
return 1;
}
public WBB_UserRemovedFromGroup ( Index ) {
return 1;
}
public WBB_UserSettedToGroup ( Index ) {
return 1;
}
public WBB_UserSignaturDisabled ( Index ) {
return 1;
}
public WBB_UserSignaturEnabled ( Index ) {
return 1;
}
public WBB_UserUnbanned ( Index ) {
return 1;
}[/pwn]
Diese werden nicht! für die haupt Funktionen genutzt!
ihr könnt ihr z.B. print("User Hinzugefügt"); unter 'WBB_UserAdded' Hinzufügen.
Ich hoffe das euch mein Tutorial gefallen hat, ihr könnt mir jegliche Frage dazu stellen, ich kann euch aber nicht versprechen das ich alle beantworten kann.
Ich möchte mich auch für meine Rechtschreibung entschuldigen.
Wichtig: Wenn du eine schleifen machen willst, nie so:
[pwn]if(WBB_EnableUser == 0)
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht Aktiviert");
return 1;
}[/pwn]
Sondern ihr müsste die Call Back dafür suchen!
[pwn]if( State )
{
SendClientMessage(playerid, COLOR_RED, "Du bist Aktiviert");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht Aktiviert");
}
[/pwn]
{
SendClientMessage(playerid, COLOR_RED, "Du bist Aktiviert");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht Aktiviert");
}
[/pwn]
Code Schnippsel werden darunter gepostet!
Liebe Grüße,
Phoenix
[tabmenu][tab='Meine Forenstyles']
Blue Style: HIER [/tabmenu]
Blue Style: HIER [/tabmenu]
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Phoenix ()