ich hab ein problem mit den makeleader befehl
Errors:
C:\Dokumente und Einstellungen\Ramon123455687578686\Desktop\Los Ageles Reallife Pro\gamemodes\Untitled.pwn(1653) : error 017: undefined symbol "ReturnUser"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Zeilen:
if(strcmp(cmd, "/makeleader", true) == 0) {
if(IsPlayerConnected(playerid)) {
tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /makeleader [Name oder ID] [Number(1-13)]"); return 1; }
new para1; new level; para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx); level = strval(tmp);
if(level > 19 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Inkorrekte Angabe"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1337) { if(IsPlayerConnected(para1)) {
if(para1 != INVALID_PLAYER_ID) {
if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255) {
SendClientMessage(playerid, COLOR_GREY, " That player is in a Faction / Family !"); return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), " Du Wurdest von Admin: %s zu Leader einer Family gemacht", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Du Hast %s Leader von einer Family gemacht (Family ID: %d).", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 0) { PlayerInfo[para1][pChar] = 0; }
else if(level == 1) { PlayerInfo[para1][pChar] = 265; } //LSPD else if(level == 2) { PlayerInfo[para1][pChar] = 287; } //SF ARMY else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //LS ARMY
else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //LS MEDIC else if(level == 5) { PlayerInfo[para1][pChar] = 297; } //CRIPZ else if(level == 6) { PlayerInfo[para1][pChar] = 19; } //BLOODZ
else if(level == 7) { PlayerInfo[para1][pChar] = 141; } // LS PRESI else if(level == 8) { PlayerInfo[para1][pChar] = 68; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 272; } //News Reporters else if(level == 10) { PlayerInfo[para1][pChar] = 112; } //Taxi Cab Company else if(level == 11) { PlayerInfo[para1][pChar] = 46; } //Driving/Flying School else if(level == 12) { PlayerInfo[para1][pChar] = 115; }
else if(level == 13) { PlayerInfo[para1][pChar] = 267; } //San Fierro Polizei else if(level == 14) { PlayerInfo[para1][pChar] = 275; } //San Fierro Sanitäter else if(level == 15) { PlayerInfo[para1][pChar] = 295; } //San Fierro President else if(level == 16) { PlayerInfo[para1][pChar] = 278; } //Feuerwehr
else if(level == 17) { PlayerInfo[para1][pChar] = 166; } //NSA else if(level == 18) { PlayerInfo[para1][pChar] = 164; } //Secret Service else if(level == 19) { PlayerInfo[para1][pChar] = 142; } //Terroristen gTeam[para1] = 12; PlayerInfo[para1][pTeam] = 12; SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
} }//not connected } else
{ SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht berechtigt"); } }
return 1; }