Guten Abend,
kann einer mir sagen wieso mein Server offline geht wenn ich "/setint ID" oder "/sethp" eingebe und dann nach 3-5 sec der Server Abstürzt.
Wer echt super wenn mir einer sagen kann wieso das passiert, die includes benutze ich....
#pragma dynamic 81929
#include <a_samp>
//#include <a_players>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <dini>
#include <gametexte>
#include <ocmd>
#include <foreach>
#include <SII>
#include <streamer>
#include <Double-O-Icons>
#include <bfx_ini>
Und jetzt hier mal die Befehle....
if(strcmp(cmd, "/setint", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /setint [interiorid]");
return 1;
}
new intid;
intid = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
BT_SetPlayerInterior(playerid,intid);
PlayerInfo[playerid][pInt] = intid;
format(string, sizeof(string), " interiorid %d.", intid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
Und hier den anderen
if(strcmp(cmd, "/sethp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /sethp [ID/NAME] [health]");
return 1;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
BT_SetPlayerHealth(playa, health);
new healname[MAX_PLAYER_NAME],adminname[MAX_PLAYER_NAME], tag, monat, jahr;
getdate(jahr, monat, tag);
GetPlayerName(playerid, adminname, sizeof(adminname));
GetPlayerName(playa, healname, sizeof(healname));
format(string, sizeof(string), "[%d/%d/%d] Admin %s hat %s geheilt!", tag, monat, jahr, adminname, healname);
AdminLog(string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht befugt diesen Befehl zu nutzen! ");
}
}
return 1;
}
Also weiss echt nicht was das sein kann habe auch in die server.log rein geguckt aber steht nichts. -.-