help please
#1

Hey guys. I want to make a /setstat playerid statname ammount command.
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;
}
This:
pawn Код:
if(statname == "money")
{

}
Doesn't work. It says:
Код:
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.
Reply


Messages In This Thread
help please - by bartje01 - 27.08.2010, 19:50
Re: help please - by Dolph - 27.08.2010, 20:07
Re: help please - by bartje01 - 27.08.2010, 20:26
Re: help please - by Vince - 27.08.2010, 20:54
Re: help please - by bartje01 - 27.08.2010, 22:10
Re: help please - by Adil - 27.08.2010, 22:15
Re: help please - by bartje01 - 27.08.2010, 23:09
Re: help please - by bartje01 - 28.08.2010, 05:19

Forum Jump:


Users browsing this thread: 1 Guest(s)