Hallo liebe Profis,
ich habe ein Problem, ich bekomme als einen Fehler innerhalb dieser Zeilen und es liegt nur an diesem F**king return...
Kann mir jmd den Fehler zeigen?
public OnPlayerConnect(playerid)
{
new pname[24], File:ftw=fopen("gamer.txt", io_append);
GetPlayerName(playerid, pname, 24);
fwrite(ftw, pname);
fclose(ftw);
new string[30];
format(string, 30, "%s\r\n", pname);
fwrite(ftw, string);
return 1;
}
{
new pname[MAX_PLAYER_NAME];
new string[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s ist dem Server Beigetreten!", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
return 0;
}
(Zeile 358 - 379)
Das verdammte Pawno zeigt mir diese Fehlermeldung
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\GTA_SERVER\pawno\include\M-inc.inc(341) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(360) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(364) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(369) : error 055: start of function body without function header
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(372) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(375) : error 010: invalid function or declaration
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(377) : error 010: invalid function or declaration
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(382) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(383) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(642) : warning 203: symbol is never used: "pname"
C:\Users\Matthias.HP-Compaq-6820s\Desktop\GTA SAN ANDREAS\SaMP\Backup\pawno\Freeroam.pwn(642) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Wie immer danke ich euch für eure Hilfe