Errors
]C:\Users\Markus\Desktop\\gamemodes\n(23825) : warning 209: function "cmd_rsperre" should return a value
C:\Users\Markus\Desktop\\gamemodes\pwn(24868) : warning 215: expression has no effect
C:\Users\Markus\Desktop\\gamemodes\.pwn(24885) : error 021: symbol already defined: "name"
C:\Users\Markus\Desktop\\gamemodes\pwn(24890) : warning 217: loose indentation
C:\Users\Markus\Desktop/\gamemodes\pwn(24899) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\\gamemodes\wn(24907) : warning 217: loose indentation
C:\Users\Markus\Desktop\\gamemodes\cwn(24880) : warning 204: symbol is assigned a value that is never used: "attext"
C:\Users\Markus\Desktop\\gamemodes\cn(24880) : warning 204: symbol is assigned a value that is never used: "atext"
C:\Users\Markus\Desktop\\gamemodes\county.pwn(30540) : warning 203: symbol is never used: "Brand"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Codes:
}
cmd:donator(playerid,params[])
{
printf("%s donator",PlayerName(playerid));
new name[MAX_PLAYER_NAME],atext[25],str[120],attext[50];
GetPlayerName(playerid,name,sizeof(name));
if(SpielerInfo[playerid][uDonator]) return KeineRechte(playerid);
if(sscanf(params,"rs", giveplayerid)) //return SendClientMessage(playerid,COLOR_RED,"Benutze /Donator [Name/ID]");
SendClientMessage(playerid,COLOR_ORANGE,"Du bist nun als Donator Sichtbar, deine farbe ist BLAU");
new name[MAX_PLAYER_NAME],atext[25],attext[50];
GetPlayerName(playerid,name,sizeof(name));
{ atext = "{FFFA00}Donator"; attext = "* Donator *";}
if(SpielerInfo[playerid][uDonator]){ atext = "{FFFA00}Donator"; attext = "* Donator *";}
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
{
format(str,sizeof(str),"%s {FAFAFA}%s ist nun im Dienst.",atext,name);
GebeLeben(playerid,99999999999999999);
SendClientMessageToAll(-1,str);
adienst[playerid] = 1;
SpielerInfo[playerid][uHunger]=100;
SetPlayerChatBubble(playerid, attext, 0xFF0000FF, 100.0, 10000);
Admindiensttimer[playerid] = SetTimerEx("AdienstT",2000,true,"d",playerid);
}
else{
format(str,sizeof(str),"%s {FAFAFA}%s ist nicht mehr im Dienst.",atext,name);
SendClientMessageToAll(-1,str);
adienst[playerid] = 0;
KillTimer(Admindiensttimer[playerid]);
GebeLeben(playerid,100);
SpielerInfo[playerid][uHunger]=100;
}
return 1;
@Jeffry kannst du mich da vllt helfen?