Hey ich habe mir ein Premium-Chat erstellt Hier
Aber kriege Erros:
ocmd:p(playerid,params[])
{
if(!IstSpielerPrem(playerid,1)) return SCM(playerid,Rot,"Kein Premium");
new text[128],new rangname[128],rang;
if(sscanf(params,"s",text)) return SCM(playerid,Blau,"Benutzte:/p [TEXT]");
switch(GetPVarInt(playerid,"Prem"))
{
case 1: format(rangname,32,"Premium");
case 2: format(rangname,32,"Siber Premium");
case 3: format(rangname,32,"Gold Premium");
}
format(text,sizeof(text),"[%s]%s:%s",rangname,SpielerName(playerid),text);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IstSpielerPrem(i,GetPVarInt(playerid,"Prem")))
{
SendClientMessage(i,hblau,text);
}
}
return 1;
}
F:\neuServer\gamemodes\dawn.pwn(1369) : error 001: expected token: "-identifier-", but found "new"
F:\neuServer\gamemodes\dawn.pwn(1373) : error 017: undefined symbol "rangname"
F:\neuServer\gamemodes\dawn.pwn(1374) : error 017: undefined symbol "rangname"
F:\neuServer\gamemodes\dawn.pwn(1375) : error 017: undefined symbol "rangname"
F:\neuServer\gamemodes\dawn.pwn(1377) : error 017: undefined symbol "rangname"
F:\neuServer\gamemodes\dawn.pwn(1387) : warning 217: loose indentation
F:\neuServer\gamemodes\dawn.pwn(1389) : warning 217: loose indentation
F:\neuServer\gamemodes\dawn.pwn(1389) : error 029: invalid expression, assumed zero
F:\neuServer\gamemodes\dawn.pwn(1389) : error 017: undefined symbol "ocmd_gethere"
F:\neuServer\gamemodes\dawn.pwn(1389) : error 029: invalid expression, assumed zero
F:\neuServer\gamemodes\dawn.pwn(1389) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.