Hallo,
habe gestern versucht bei meinem Script für Bundeswehr Uniformen einzufügen aber wenn ich des einfüge kommt dann immer ein error das er "M_Bot" nicht lesen kann aber der kommt nur wenn ich folgendes einfüge:
else if (PlayerToPoint(3, playerid,217.8921,78.9727,1005.0391))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /uniform [item number]");
SendClientMessage(playerid, COLOR_GREEN, "|_______Bundeswehr Uniform _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Uniform 1 (164)");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 2: Uniform 2 (163)");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 3: Uniform 3 (166)");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 4: Uniform 4 (285)");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 5: Uniform 5 (165)");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 6: Uniform 6 (141)(Weiblich)");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 164);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 2)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 163);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 3)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 166);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 4)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 5)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 165);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 6)
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerSkin(playerid, 141);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Zieht eine Uniform an.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Nicht Befugt/Nicht Verfügbar ");
return 1;
}
}
Könnt ihr mir sagen wo mein Fehler ist?