if(strcmp(cmd, "/tarn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /tarn [Playerid/PartOfName]");
return 1;
}
skinplayerid = ReturnUser(tmp);
if(IsPlayerConnected(skinplayerid))
{
if(skinplayerid != INVALID_PLAYER_ID)
{
new skinid = GetPlayerSkin(skinplayerid);
SetPlayerSkin(playerid, skinid);
GetPlayerName(skinplayerid, skinplayername, sizeof(skinplayername));
format(string, sizeof(string), "* Du hast dich als %s getarnt.", skinplayername);
SendClientMessage(playerid, 0xAA3333AA, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist offline !");
return 1;
}
}
return 1;
}
Error
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34355) : error 017: undefined symbol "skinplayerid"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34356) : error 017: undefined symbol "skinplayerid"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34358) : error 017: undefined symbol "skinplayerid"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34360) : error 017: undefined symbol "skinplayerid"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34362) : error 017: undefined symbol "skinplayerid"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34362) : error 017: undefined symbol "skinplayername"
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34362) : error 029: invalid expression, assumed zero
D:\Programme\SAMP Server\DDG\gamemodes\DDG.pwn(34362) : fatal error 107: too many error messages on one line
Was ist falsch