Hallo zusammen ich habe folgendes Problem.
Ich habe ein Register System erstellt und in den include Ordner bei Pawno die Dini Datei eingefügt, jedoch erstellt er den Account nicht obwohl ich mich registriert habe!
Hier die Pawno....
#include <a_samp>
#include <dini>
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
new bsnenter;
new bsnexit;
main()
{
print("\n----------------------------------");
print("Testserver by Kevin.Alter");
print("----------------------------------\n");
}
public OnGameModeInit()
{
bsnexit=CreatePickup(1559,1,362.8629,-75.1548,1001.5078);
bsnenter=CreatePickup(1559,1,1199.2100,-918.1472,43.1235);
DisableInteriorEnterExits();
SetGameModeText("TestMode");
AddPlayerClass(0,2047.4270,1336.5569,10.6719,188.9284,0,0,0,0,0,0);
AddPlayerClass(1,2047.4270,1336.5569,10.6719,188.9284,0,0,0,0,0,0);
AddStaticVehicle(400,1227.3770,-917.8026,42.9949,102.4149,113,1); // auto1
AddStaticVehicle(401,1227.3444,-914.6230,42.6810,102.2655,52,52); // auto2
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,2047.4270,1336.5569,10.6719);
SetPlayerFacingAngle(playerid, 188.9284);
SetPlayerCameraPos(playerid,2047.6205,1333.3314,10.6719);
SetPlayerCameraLookAt(playerid,2047.4270,1336.5569,10.6719);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte geben Sie hier Ihr gewünschtes Passwort ein:","Register","Abbrechen");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/bsn",true)==0)
{
SetPlayerPos(playerid,1218.5444,-919.8000,43.0938);
SendClientMessage(playerid,0xFF0A00FF,"Du wurdest Teleportiert!(BSN)");
return 1;
}
if(strcmp(cmdtext,"/restart",true)==0)
{
SendRconCommand("gmx");
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==bsnenter)
{
SetPlayerPos(playerid,363.5339,-74.7410,1001.5078);
SetPlayerInterior(playerid,10);
}
if(pickupid==bsnexit)
{
SetPlayerPos(playerid,1197.3235,-919.5172,43.1258);
SetPlayerFacingAngle(playerid,206.1619);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG_REGISTER)
{
if(response==0)
{
SendClientMessage(playerid,0xF5FF00FF,"Du wurdest gekickt!");
Kick(playerid);
return 1;
}
if(response==1)
{
if(!strlen(inputtext))
{
SendClientMessage(playerid,0xF5FF00FF,"Dein Passwort war nicht lang genug!");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte geben Sie hier Ihr gewünschtes Passwort ein:","Register","Abbrechen");
return 1;
}
else
{
Register(playerid,inputtext);
return 1;
}
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
stock Register(playerid,key[])
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
dini_Create(Spielerdatei);
dini_Set(Spielerdatei,"Passwort",key);
SendClientMessage(playerid,0xBE00FFFF,"Sie haben sich Erfolgreich registriert!");
return 1;}