Hallo Leute bitte helft mir was ist Daran falsch ?
ocmd:maske(playerid,params[])
{
if(Maske[playerid] == 0)
{
new Text3D:TMASK[MAX_PLAYERS];
new Float:X,Float:Y,Float:Z;
TMASK[playerid] = Create3DTextLabel("\n\n\nUnbekannter",weiss,X,Y,Z,50.0,0,0);
Attach3DTextLabelToPlayer(TMASK[playerid],playerid,0.0,0.0,0.75);
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 0);
SetPlayerAttachedObject(playerid,0,19318,1,0.200000, 0.000000, 0.000000, -0.000000, 135.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,gelb,"Du hast dir eine Maske aufgesetzt");
Maske[playerid] = 1;
}
else if(Maske[playerid] == 1)
{
Delete3DTextLabel(TMASK[playerid]);
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 1);
SendClientMessage(playerid,gelb, "Du hast deine Maske abgesetzt");
RemovePlayerAttachedObject(playerid,0);
Maske[playerid] = 0;
}
return 1;
}
Wenn ich Compile kommt
C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1320) : error 017: undefined symbol "TMASK"
C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1320) : warning 215: expression has no effect
C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1320) : error 001: expected token: ";", but found "]"
C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1320) : error 029: invalid expression, assumed zero
C:\Users\steffen\Dropbox\Scripting Unterricht 1\gamemodes\su.pwn(1320) : fatal error 107: too many error messages on one line
Hilfe pls.