Mivel ö DCMD-vel csinálta és neked nincs be definiálva a DCMDEzt a módod elejére illeszt be[pawn]#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[/pawn]A 14667 sornál meg az a \'kód\'Nem létezik (Asszem)És egy DCMD-s parancs igy néz ki:[pawn]dcmd_valami(playerid, params[]){//Ide a parancs cuccokatreturn 1;}[/pawn]
public OnPlayerCommandText(playerid, cmdtext[]){dcmd(garageenter, 11, cmdtext);return 0;}dcmd_garageenter(playerid,params[]){#pragma unused params[]// Többi adatreturn 1;}
#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 1public OnPlayerCommandText(playerid, cmdtext[]){dcmd(garageenter, 11, cmdtext); return 0;}enum svpos{Float:sX,Float:sY,Float:sZ,Float:sA,SavedPos}new SavePos[MAX_PLAYERS][svpos];dcmd_garageenter(playerid,params[]){if(IsPlayerInRangeOfPoint(playerid, 3.0, -2572.276367, 880.016235, 63.275249)){//if (sscanf(params, \"r\"))#pragma unused paramsGetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);GetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]);GetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);GetPlayerFacingAngle(playerid, SavePos[playerid][sA]);SavePos[playerid][savedPos] = 1;SetPlayerPos(playerid, -2186.126953125,-210.37698364258,36.515625);SetPlayerVirtualWorld(playerid, 5); //VirtuaWorld-t át lehet írni,hogy ne egy garázsban legyen az összes playernew getv = GetPlayerVehicleID(playerid);SetVehiclePos(getv,-2186.126953125,-210.37698364258,36.515625);SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 5); //VirtuaWorld-t át lehet írni,hogy ne egy garázsban legyen az összes playerPutPlayerInVehicle(playerid,getv,0);}elseSendClientMessage(playerid, 0xAA3333AA, \"Nem vagy garázsnál!\");return 1;}