27.08.2010, 19:50
Hey guys. I want to make a /setstat playerid statname ammount command.
It doesn't work.
I have this:
This:
Doesn't work. It says:
It doesn't work.
I have this:
pawn Код:
dcmd_setstat(playerid,params[])
{
new ammount,statname,ID;
if(adminlevel[playerid]<=2)
{
SendClientMessage(playerid,COLOR_RED,"Je mag dit niet doen");
return 1;
}
if(sscanf(params,"usd",ID,statname,ammount))
{
SendClientMessage(playerid,COLOR_GREY,"Gebruik /setstat [playerid] [stat] [ammount]");
return 1;
}
if(statname == "money")
{
}
return 1;
}
pawn Код:
if(statname == "money")
{
}
Код:
C:\Users\Bart\Desktop\Rubenbart server\gamemodes\SunlightRPG.pwn(559) : error 033: array must be indexed (variable "-unknown-") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.