Hey Leute die Frage ist oben,
hier der Befehl:
if(strcmp(cmdtext,"/m",true)==0)
{
if(isPlayerInFrakt(playerid,1))
new string1[128];
format(string1,128,"[Officer %s:<<< %s >>>.]",SpielerName(playerid),text);
for(new i = 0;i<MAX_PLAYERS;i ++)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if(IsPlayerInRangeOfPoint(i,20.0,X,Y,Z))
{
SendClientMessage(i,GELB,string);
return 0;
}
}
}
Und die Erros lauten:
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1179) : error 003: declaration of a local variable must appear in a compound block
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1179) : error 017: undefined symbol "string1"
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1179) : warning 215: expression has no effect
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1179) : error 001: expected token: ";", but found "]"
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1179) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Mfg Larso99