new Getarnt[MAX_PLAYERS];
if(strcmp(cmd, "/tarnen",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 )
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /tarnen[playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(Getarnt[playerid] == 0)
{
if(giveplayerid != INVALID_PLAYER_ID && Getarnt[playerid] == 0)
{
new Skins;
Skins = GetPlayerSkin(giveplayerid);
GetPlayerName(playerid, HitName, sizeof(HitName));
PreviousSkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, Skins);
SendClientMessage(playerid,COLOR_YELLOW,"Erfolgreich getarnt");
Getarnt[playerid] = 1;
}
}
else if(Getarnt[playerid] == 1)
{
GetPlayerName(playerid, HitName, sizeof(HitName));
PreviousSkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, PreviousSkin[playerid]);
SendClientMessage(playerid,COLOR_YELLOW,"Erfolgreich getarnt");
}
}
return 1;
}
Und hier die Errors brauche hier hilfe
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59150) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59152) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59155) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59158) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59161) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59163) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59166) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59174) : error 010: invalid function or declaration
C:\Users\Dutchman\Desktop\Script\gamemodes\rgr.pwn(59182) : error 010: invalid function or declaration