Hallo,
ich verzweifle grade
In meinem anderen Script geht es, aber hier i.wie nich?
Hier der Code, danach die Errors:
new str[256], rang;
new giveadmin [MAX_PLAYER_NAME];
giveadmin = GetPlayerName(playerid, giveadmin, MAX_PLAYER_NAME); //Errorzeile 30
new getadmin [MAX_PLAYER_NAME];
getadmin = GetPlayerName(playerid, getadmin, MAX_PLAYER_NAME); //Errorzeile 32
if(sscanf(params,"ui", getadmin, rang))return SendClientMessage(playerid, 0x00FF78FF, "Benutzung:/makeadmin [ID] [RANG]");
format(str, sizeof(str), "[ADMIN]:%s hat %s zu einem %s -Admin befördert!", giveadmin, getadmin, rang);
C:\Users\Marcel\Desktop\Rum-Bastel-Ecke_GTA_SAMP\filterscripts\sipmleadmin.pwn(30) : error 033: array must be indexed (variable "giveadmin")
C:\Users\Marcel\Desktop\Rum-Bastel-Ecke_GTA_SAMP\filterscripts\sipmleadmin.pwn(32) : error 033: array must be indexed (variable "getadmin")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.