Hab Bug... mehr ein sicherheitsbug, weil man kann sich mit einen Account mit irgendein pw anmelden/Einloggen^^
Liegt das an den Warning "plname"?
//EDIT
new plname [MAX_PLAYER_NAME]; //Die zeile wo der Warning kommt
Komplett
public OnPlayerCommandText(playerid, cmdtext[])
{
M_OnPlayerCommandText(playerid,cmdtext);
new string[200];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new plname [MAX_PLAYER_NAME];
new cmd[180];
new tmp[180];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
GetPlayerName(playerid,sendername,sizeof(sendername));
if(!strcmp(cmdtext, "/leaveplane", true))
{
if(IsPlayerConnected(playerid))
{
if(VehicleToPoint(At400Bot, 20.0, -1442.1255,-117.1176,14.1049))
{
SetPlayerPos(playerid,-1424.4844,-288.7705,14.1484);
SetPlayerFacingAngle(playerid,148.7521);
ToldLSGelandet[playerid] = 0;
ToldSFGelandet[playerid] = 0;
ToldSFLandeanflug[playerid] = 0;
ToldLSLandeanflug[playerid] = 0;
neuimplane[playerid] = 0;
ToldLSStarten[playerid] = 0;
ToldSFStarten[playerid] = 0;
fluggast[playerid] = 0;
GivePlayerMoney(playerid, -200);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "Wir hoffen der Flug hat Ihnen gefallen!");
SendClientMessage(playerid, COLOR_YELLOW, "Einen schoenen Tag wünschen wir Ihnen noch!!");
}
else if(VehicleToPoint(At400Bot, 20.0, 1907.6643,-2329.5166,13.4377))
{
SetPlayerPos(playerid,1686.5375,-2240.4282,13.5469);
SetPlayerFacingAngle(playerid,186.7823);
ToldLSGelandet[playerid] = 0;
ToldSFGelandet[playerid] = 0;
ToldSFLandeanflug[playerid] = 0;
ToldLSLandeanflug[playerid] = 0;
ToldLSStarten[playerid] = 0;
ToldSFStarten[playerid] = 0;
fluggast[playerid] = 0;
GivePlayerMoney(playerid, -200);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "Wir hoffen der Flug hat Ihnen gefallen!");
SendClientMessage(playerid, COLOR_YELLOW, "Einen schoenen Tag wünschen wir Ihnen noch!!");
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"Du kannst das Flugzeug nicht verlassen! Es fliegt bereits!");
}
}
return 1;
}