Also .... ich habe es jetzt geschafft aber es geht noch immer nicht..... ich habe 10 Errors:
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(159) : error 036: empty statement
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(160) : warning 217: loose indentation
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(161) : error 017: undefined symbol "strget"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(162) : error 017: undefined symbol "strget"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(163) : error 017: undefined symbol "strget"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(164) : error 017: undefined symbol "accFormat"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(167) : error 017: undefined symbol "PlayerName"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(168) : error 017: undefined symbol "PlayerName"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(169) : error 017: undefined symbol "ziel"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(161) : warning 204: symbol is assigned a value that is never used: "ID"
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(161 -- 172) : warning 217: loose indentation
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(172) : error 029: invalid expression, assumed zero
C:\Users\wirth\Desktop\gta sa-mp server\filterscripts\Sample(1).pwn(174) : error 017: undefined symbol "COLOR_RED"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Der Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/MakeSupporter", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][admin] >= 5);
{
new ID = strval(strget(cmdtext,1));
new level = strval(strget(cmdtext,2)); // Is für mich neu muss aber ja klappen wenn du das so hast
if(!strlen(strget(cmdtext,2))) { SendClientMessage(playerid,0xFFFFFFFF,"Benutzung: /MakeSupporter [ID] [Level bist 10]"); return 1; }
dini_Set(accFormat,"Supporter",inputtext);
pInfo[playerid][Supporter] = (level);
new msg[100],msg2[100];
format(msg, sizeof(msg), "%s hat dich zum Supporter gemacht",PlayerName(playerid),preis);
format(msg2, sizeof(msg2), "Du hast %s zum Supporter gemacht",PlayerName(ID),preis);
SendClientMessage(ziel, 0xFFFFFFFF,msg);
SendClientMessage(playerid, 0xFFFFFFFF,msg2);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin/Supporter!");
}
}
return 1;
}
wo ist hier der fehler?