Hier die Zeilenocmd:w(playerid,params[])
{
new pID, spname, string[128];
format(string, sizeof(string), "(( %s: %s ))", spname, string);
GetPlayerName(playerid, spname[MAX_PLAYER_NAME], sizeof(spname));//<-------- FEHLER UND ZWAR ALLE 4
if(sscanf(params,"us", pID, string))
{
SendClientMessage(playerid,Orange,"Benutze: /w [playerid]");
}
if(IsPlayerConnected(pID))
{
SendClientMessage(pID,Gelb,string);
SendClientMessage(playerid,Gelb,string);
}
else
{
SendClientMessage(playerid,Rot,"Der Spieler ist nicht online.");
}
}
Hier die FehlerC:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(2168) : error 028: invalid subscript (not an array or too many subscripts): "spname"
C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(2168) : warning 215: expression has no effect
C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(2168) : error 001: expected token: ";", but found "]"
C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(2168) : error 029: invalid expression, assumed zero
C:\Users\Niklas\Desktop\GTA SERVER\gamemodes\rl.pwn(2168) : fatal error 107: too many error messages on one line