CMD PROBLEM - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CMD PROBLEM (
/showthread.php?tid=136685)
CMD PROBLEM -
02manchestera - 26.03.2010
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;
}
Re: CMD PROBLEM -
[cA]Unforseen - 26.03.2010
you have made two BIG MISTAKES!!!
1) You cant make a dcmd inside strcmp^^
2) the command is not closed :S
Re: CMD PROBLEM -
02manchestera - 26.03.2010
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.
Re: CMD PROBLEM -
Flake. - 26.03.2010
Quote:
Originally Posted by [cA
Unforseen ]
1) You cant make a dcmd inside strcmp^^
|
this is the one i Imediatly noticed :P
Re: CMD PROBLEM -
Flake. - 26.03.2010
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;
}