CMD PROBLEM
#1

Can anyone see something wrong here

Код:
 if(strcmp(cmd, "/fillall",true)==0)
  {
  dcmd_fillallcars (playerid, params[])
{
	#pragma unused params
    if(!IsPlayerAdmin(playerid)) return 1;
	new
	  v;

	while (v != MAX_VEHICLES)
	{
	  Benzin[v] = 100; //Uncomment this if you want it random and comment the other below
	  //Benzin[v] = random(100);
      ++v;
	}
	return 1;
}
Reply
#2

you have made two BIG MISTAKES!!!

1) You cant make a dcmd inside strcmp^^

2) the command is not closed :S
Reply
#3

well its from a filterscript but no one answered me there how do i make it with a cmd as i cnt see one der.
Reply
#4

Quote:
Originally Posted by [cA
Unforseen ]
1) You cant make a dcmd inside strcmp^^
this is the one i Imediatly noticed :P
Reply
#5

Try

pawn Код:
dcmd(fillallcars , 1, cmdtext);

  dcmd_fillallcars (playerid, params[])
{
    #pragma unused params
    if(!IsPlayerAdmin(playerid)) return 1;
    new
      v;

    while (v != MAX_VEHICLES)
    {
      Benzin[v] = 100; //Uncomment this if you want it random and comment the other below
      //Benzin[v] = random(100);
      ++v;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)