Szerző Téma: miért írja ezt az error-t?  (Megtekintve 943 alkalommal)

miért írja ezt az error-t?
« Dátum: 2012. Május 13. - 10:47:12 »
0 Show voters
Ez lenne a parancs:
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!\");
}

 
Ez meg a hiba: symbol is never used: \"dcmd_goto\"
Ez is benne van:
#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

 
Segítsetek pls.:)
[mod]CODE tagek haszálata kötelezõ[/mod]
« Utoljára szerkesztve: 2012. Május 13. - 11:06:40 írta Benceee »

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #1 Dátum: 2012. Május 13. - 11:05:33 »
0 Show voters
Azért, mert a \"goto\" parancsot mág használod a módban/scriptben!
 
A [*code] [/code*] tag használata kötelezõ! (Csillag nélkül!)[/quote]
« Utoljára szerkesztve: 2012. Május 13. - 11:07:35 írta Benceee »

miért írja ezt az error-t?
« Válasz #2 Dátum: 2012. Május 13. - 11:16:34 »
0 Show voters
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(goto, 4, cmdtext);
    return 0;
}

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #3 Dátum: 2012. Május 25. - 16:56:05 »
0 Show voters
Idézetet írta: quer date=1337675044\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21389\" data-ipsquote-contentclass=\"forums_Topic

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
 :D

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #4 Dátum: 2012. Május 25. - 18:16:36 »
0 Show voters
Idézetet írta: kadaradam date=1336900594\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21389\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(goto, 4, cmdtext);
    return 0;
}

 

Ez valószínûleg megoldja majd.

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #5 Dátum: 2012. Május 25. - 22:05:04 »
0 Show voters
Zárd ha jó sztm,  :thumbsup: :thumbsup:

miért írja ezt az error-t?
« Válasz #6 Dátum: 2012. Május 13. - 10:47:12 »
0 Show voters
Ez lenne a parancs:
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!\");
}

 
Ez meg a hiba: symbol is never used: \"dcmd_goto\"
Ez is benne van:
#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

 
Segítsetek pls.:)
[mod]CODE tagek haszálata kötelezõ[/mod]
« Utoljára szerkesztve: 2012. Május 13. - 11:06:40 írta Benceee »

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #7 Dátum: 2012. Május 13. - 11:05:33 »
0 Show voters
Azért, mert a \"goto\" parancsot mág használod a módban/scriptben!
 
A [*code] [/code*] tag használata kötelezõ! (Csillag nélkül!)[/quote]
« Utoljára szerkesztve: 2012. Május 13. - 11:07:35 írta Benceee »

miért írja ezt az error-t?
« Válasz #8 Dátum: 2012. Május 13. - 11:16:34 »
0 Show voters
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(goto, 4, cmdtext);
    return 0;
}

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #9 Dátum: 2012. Május 25. - 16:56:05 »
0 Show voters
Idézetet írta: quer date=1337675044\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21389\" data-ipsquote-contentclass=\"forums_Topic

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
 :D

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #10 Dátum: 2012. Május 25. - 18:16:36 »
0 Show voters
Idézetet írta: kadaradam date=1336900594\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21389\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(goto, 4, cmdtext);
    return 0;
}

 

Ez valószínûleg megoldja majd.

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
miért írja ezt az error-t?
« Válasz #11 Dátum: 2012. Május 25. - 22:05:04 »
0 Show voters
Zárd ha jó sztm,  :thumbsup: :thumbsup:

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal