CMD:copyCommand(playerid, params[])
{
SendClientMessageToAll(-1, " 1 2 3 ... Testing ... ");
return true;
}
: warning 204: symbol is assigned a value that is never used: "s" : warning 217: loose indentation : warning 203: symbol is never used: "CountLogins" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
CMD:plus(playerid,params[])
{
if(PlayerInfo[playerid][aLevel] < 1) return SendClientMessage(playerid,RED,"Only admin level 1+ can use this command.");
if(HasSpawned{playerid} == false) return SendClientMessage(playerid, RED, "You must be spawned before you can use this command.");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "You cant use this command in a vehicle.");
new coordinate[150], Float:distance, Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(sscanf(params, "s[150]f", coordinate, distance)) return SendClientMessage(playerid, RED, "[USAGE]: /plus [x/y/z] [distance]");
if(strfind(coordinate, "x", false) != -1)
{
SetPlayerPos(playerid, x + distance, y, z);
}
else if(strfind(coordinate, "y", false) != -1)
{
SetPlayerPos(playerid, x, y + distance, z);
}
else if(strfind(coordinate, "z", false) != -1)
{
SetPlayerPos(playerid, x, y, z + distance);
}
else
{
SendClientMessage(playerid, RED, "The coord can only be x, y or z.");
}
return true;
}
CMD:copyCommand(playerid, params[])
{
SendClientMessageToAll(-1, " 1 2 3 ... Testing ... ");
return true;
}
Hello there,
I am editing a gamemode(NVCNR one) and I am trying to make a command, but for some reason what I make doesn't work. I copied a command and changed the name, that worked but making one from scratch makes the server go: "SERVER: Unknown Command" here is a example of What I made: PHP код:
Код:
: warning 204: symbol is assigned a value that is never used: "s" : warning 217: loose indentation : warning 203: symbol is never used: "CountLogins" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. |
The only thing I can figure out, it's you are using uppercase at the command. Try: copycommand.
|