dcmd_goto(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) { if(!strlen(params)) return SendClientMessage(playerid,red,\"Használat: /goto [id]\"); new player1, string[128];if(!IsNumeric(params)) player1 = ReturnPlayerID(params); else player1 = strval(params); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) { CMDMessageToAdmins(playerid,\"GOTO\"); new Float:x, Float:y, Float:z; GetPlayerPos(player1,x,y,z); SetPlayerInterior(playerid,GetPlayerInterior(player1)); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(player1)); if(GetPlayerState(playerid) == 2) { SetVehiclePos(GetPlayerVehicleID(playerid),x+3,y,z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(player1)); SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(player1)); } else SetPlayerPos(playerid,x+2,y,z); format(string,sizeof(string),\"Hozzá teleprtáltál: \\\"%s\\\"\", pName(player1)); return SendClientMessage(playerid,blue,string);} else return SendClientMessage(playerid, red, \"Nem csatlakozott játékos!\");} else return SendClientMessage(playerid,red,\"HIBA: Nincs meg a parancshoz az admin szinted!\");}
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
A [*code] [/code*] tag használata kötelezõ! (Csillag nélkül!)[/quote]
public OnPlayerCommandText(playerid, cmdtext[]){ dcmd(goto, 4, cmdtext); return 0;}
miért írja ezt az error-t?Az errort másod be pls [/quote]#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
miért írja ezt az error-t?