Moin,Moin ich habe Folgendes Problem:
C:\Users\********\Desktop\Alles\Samp-Server\gamemodes\Reallife.pwn(312) : error 006: must be assigned to an arrayPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Zeile 312:
giveplayerid = ReturnUser(tmp);
Den Befehl denn ich Scripten wolte:
new cmd[256], idx;cmd = strtok(cmdtext, idx);if(strcmp(cmd, "/makeadmin", true) == 0){ new string[128]; new tmp[256]; new player[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME]; new giveplayerid; if (Spielerinfo[playerid][Adminlevel] == 3) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_INFOGELB, "~KORIGIERE: /makeadmin [playerid] [level]"); SendClientMessage(playerid, COLOR_INFOGELB, " ~FUNKTION: Du gibst einen Spieler ein Admin Level (Maximal 3)"); return 1; } giveplayerid = ReturnUser(tmp); giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); new level = strval(tmp); if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, player, sizeof(player)); Spielerinfo[giveplayerid][Adminlevel] = level; format(string, sizeof(string), "Du bist nun Adminlevel: %d Danke an %s.", level, player); SendClientMessage(giveplayerid, COLOR_BABYBLAU, string); format(string, sizeof(string), "Du hast das Level %s an %d Gegeben.", giveplayer,Spielerinfo[giveplayerid][Adminlevel]); SendClientMessage(playerid, COLOR_BABYBLAU, string); } else if(giveplayerid == INVALID_PLAYER_ID) { format(string, sizeof(string), "%i ist nicht Online.", giveplayerid); SendClientMessage(playerid, COLOR_INFOROT, string); } } else { SendClientMessage(playerid, COLOR_INFOROT, "SERVER: Du bist kein Admin"); } return 1;}
ich hoffe ihr Könnt mir weiter Helfen
Mfg Atrax.