25.05.2010, 16:05
Hey, I got some trouble with a command.
I wanted to make a command with that i can respawn all cars.
But everytime i compile my script, i get this error:
The line, in that is the error is this:
here is my complete code of the command:
please help.
i really dont know.
my includes:
I wanted to make a command with that i can respawn all cars.
But everytime i compile my script, i get this error:
Quote:
"error 033: array must be indexed ( variable "--unknown--")" |
Код:
if (sscanf(params, "s", command))
Код:
CMD:respawn(playerid, params[]) { if (IsPlayerAdmin(playerid) == 1) { new command; if (sscanf(params, "s", command)) { if (command == "autos") { SendClientMessageToAll(ORANGE, "*** Autos wurden respawnt"); } } SendClientMessage(playerid, RED, "SERVER: Befehl ist noch in Arbeit"); } else { SendClientMessage(playerid, RED, "SERVER: Du bist nicht als Admin eingeloggt"); } return 1; }
i really dont know.
my includes:
Код:
#include <a_samp> #include <zcmdsscanf> #include <dudb> #include <streamer>