if(strcmp(cmd, "/event", true) == 0)
{
if(EventAktiv == 1)
{
new sendername[MAX_PLAYER_NAME];
new string[250];
SetPlayerPos(playerid, EventPosX, EventPosY, EventPosZ);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast dich zum Event telepotiert!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s hat sich zum Event geportet!", sendername); /
SendAdminMessage(COLOR_YELLOW, string);
}
Hier die Warnings:
C:\Users\Ryan\Desktop\Real - Kopie\gamemodes\gfl.pwn(29255) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Ryan\Desktop\Real - Kopie\gamemodes\gfl.pwn(29256) : warning 219: local variable "string" shadows a variable at a preceding level
Zeile 29255: new sendername[MAX_PLAYER_NAME];
Zeile 29256: new string[250];