Habe das hier gescriptet:
dcmd_gebegeld(playerid,params[])
{
new moneyid, moneyamount;
if(sscanf(params,"dd",moneyid,moneyamount))
{
SendClientMessage(playerid,0xFF0000FF," /gebegeld [ID] [Geld] ");
}
else if(!IsPlayerConnected(moneyid))
{
SendClientMessage(playerid,0xFF0000FF," Spieler nicht gefunden!");
}
else if(moneyamount < 1 || moneyamount > 50000)
{
SendClientMessage(playerid,0xFF0000FF," Summe ungültig!");
}
else
{
new
name[MAX_PLAYER_NAME],
mname[MAX_PLAYER_NAME],
string[128];
GetPlayerName(moneyid,name,sizeof(name));
GetPlayerName(playerid,mname,sizeof(mname));
format(string,sizeof(string),"Du hast $%s von %s bekommen!",moneyamount,name);
SendClientMessage(0xFFFF00AA,string);
GivePlayerMoney(moneyid,moneyamount);
format(string,sizeof(string),"Du hast $%s an %s geschickt!",moneyamount,mname);
SendClientMessage(0xAA3333AA,string);
GivePlayerMoney(playerid,-moneyamount);
}
return 1;
}
Habe hier die 2 Errors :
C:\PROGRA~1\GTASAN~1\GTASAN~1\SAMP03~1\GAMEMO~1\Sample.pwn(246) : error 035: argument type mismatch (argument 2)
C:\PROGRA~1\GTASAN~1\GTASAN~1\SAMP03~1\GAMEMO~1\Sample.pwn(250) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
in diesen 2 zeilen :
format(string,sizeof(string),"Du hast $%s von %s
bekommen!",moneyamount,name);
format(string,sizeof(string),"Du hast $%s an %s
geschickt!",moneyamount,mname);
ich denke es liegt am string oder so ...
Danke für jede Hilfe die kommt MfG bad_company