Hey Community,
Ich habe ein Problem unzwar bekomme ich diese Errors:
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(270) : warning 202: number of arguments does not match definition
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(336) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(336) : error 017: undefined symbol "Age"
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(336) : warning 215: expression has no effect
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(337) : error 017: undefined symbol "Age"
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(337 -- 338) : warning 215: expression has no effect
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(338) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(338) : error 017: undefined symbol "Age"
C:\Users\Adrian\Desktop\GTA-Server\gamemodes\Selfmade.pwn(338) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Und hier der Code dazu:
if(dialogid == DIALOG_ALTER)
{
if(response)
{
new jahr, monat, tag, Datum[3][20];
getdate(jahr, monat,tag);
split(inputtext, Datum, '.');
if(IsValidDate(strval(Datum[0]),strval(Datum[1]),strval(Datum[2])))
new Age; <--- Zeile 336
Age = jahr- strval(Datum[2])
dini_IntSet(accFormat,"Alter",Age);
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du wurdest gekickt, weil du abbrechen gedrückt hast.");
Kick(playerid);
}
}