JOw, habe einen /megaphone gemacht, aber habe errors die ich nicht verstehe
CMD:m(playerid,params[])
{
new Name[MAX_PLAYER_NAME];
new string[128],text[128];
new Float:X,Float:Y,Float:Z;
GetPlayerName(playerid,Name,sizeof(Name));
GetPlayerPos(playerid,X,Y,Z);
if (sscanf(params, "s", text)) return SendClientMessage(playerid, 0xFF0000AA, "Benutzung: /m [Text]");
{
format(string,sizeof(string),"**(( %s: %s ))**", Name, text);
label = Create3DTextLabel(string, 0xFFFF00AA,30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
SetTimer("megaphone",5000,0);
}
for(new i=0; i<MAX_PLAYERS; i++)
else if(IsPlayerInRangeOfPoint(i, 40.0, X, Y, Z)) //Zeile 259
{
SendClientMessage(i,0xFFFF00AA,string);
}
return 1;
}
Errors:
C:\Users\Lebbe\Neuer Ordner\SAMP\gamemodes\Mazerone.pwn(259) : error 029: invalid expression, assumed zero
C:\Users\Lebbe\Neuer Ordner\SAMP\gamemodes\Mazerone.pwn(259) : warning 215: expression has no effect
C:\Users\Lebbe\Neuer Ordner\SAMP\gamemodes\Mazerone.pwn(259) : error 001: expected token: ";", but found "if"
C:\Users\Lebbe\Neuer Ordner\SAMP\gamemodes\Mazerone.pwn(259) : error 017: undefined symbol "i"
C:\Users\Lebbe\Neuer Ordner\SAMP\gamemodes\Mazerone.pwn(259) : fatal error 107: too many error messages on one line
MfG