03.12.2011, 16:54
Hi Guys,
itґs just a little Command, if player types /zalhen ID Amount it should give amount(money) to ID and withdraw amount from Playerґs money
but now i get this error:
Thank you!
kampfMoPZ
itґs just a little Command, if player types /zalhen ID Amount it should give amount(money) to ID and withdraw amount from Playerґs money
Код:
if(!strcmp(strget(cmdtext,0),"/zahlen")){
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,COLOR_GREY,"Benutze: /zahlen [ID] [betrag]");
new zahler[MAX_PLAYER_NAME];
new empf = strval(strget(cmdtext,1));
new betrag = strval(strget(cmdtext,2));
GivePlayerMoney(empf, betrag);
GivePlayerMoney(zahler, -betrag);
}
return 1;
}
Код:
X:\AKIMBO\DetaF\gamemodes\deta.pwn(797) : error 035: argument type mismatch (argument 1) 1 Error.
kampfMoPZ


i dont no its hex value off by heart