Hallo.
Wollte eine Admin help info mit dcmd machen bekomme aber error
//---Adminhelp---///
dcmd_adminhelp(playerid,params[]){
new
msg[64],
pID;
if(!IsPlayerAdmin(playerid)){
return SentClientMessage(playerid,ROT,"Du bist kein Admin!")
}
if(sscanf(params, "dz",pID,msg)) {
SendClientMessage(playerid,GOLD,"~~~*Admin befehle*~~~");
SendClientMessage(playerid,GOLD,"Admin LvL 1: /givecash /kick /cnn");
SendClientMessage(playerid,GOLD,"Admin LvL 2:");
SendClientMessage(playerid,GOLD,"Admin LvL 3: /ban");
SendClientMessage(playerid,GOLD,"Admin LvL 4:");
return SendClientMessage(playerid,GOLD,"Admin LvL Extrem:");
}
}
error
C:\Users\\Desktop\Samp Herz\gamemodes\.pwn(1799) : error 001: expected token: ";", but found "}"
C:\Users\\Desktop\Samp Herz\gamemodes\.pwn(1806) : warning 217: loose indentation
C:\Users\\Desktop\Samp Herz\gamemodes\.pwn(1808) : warning 209: function "dcmd_adminhelp" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
danke für eure hilfe
mfg