#include <a_samp> #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(skroad, 6, cmdtext); return1; } dcmd_skroad(playerid, params[]) { #pragma unused params SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5); GameTextForPlayer(playerid,"SKROAD",2500,3); SetCameraBehindPlayer(playerid); return 1; }
dcmd_skroad(playerid, cmdtext)
{
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5);
GameTextForPlayer(playerid,"SKROAD",2500,3);
SetCameraBehindPlayer(playerid);
return 1;
}
dcmd_skroad(playerid, cmdtext[])
{
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5);
GameTextForPlayer(playerid,"SKROAD",2500,3);
SetCameraBehindPlayer(playerid);
return 1;
}
Originally Posted by cοοp
That's maybe cause of some bugged commands. That happened to me once before. When I typed something like "/asdasdsaassdasadasdaasdasdasd", then it said "[ERROR]: You must be in a vehicle". And that text was from my "/nos" command. XD
|
C:\DOCUME~1\Braeden\Desktop\SA\MYNEWE~1\FILTER~1\commands.pwn(666) : error 017: undefined symbol "params" 203: symbol is never used: "cmdtext" C:\DOCUME~1\Braeden\Desktop\SA\MYNEWE~1\FILTER~1\commands.pwn(3146) : warning 203: symbol is never used: "cmdtext" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase ETC 2 Errors.
#pragma unused cmdtext
dcmd_skroad(playerid, cmdtext)
{
#pragma unused cmdtext
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5);
GameTextForPlayer(playerid,"SKROAD",2500,3);
SetCameraBehindPlayer(playerid);
return 1;
}