Szerző Téma: error 001: expected token: ";", but found "-identifier-" Ez a hiba  (Megtekintve 3210 alkalommal)

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Dátum: 2012. Május 16. - 14:23:53 »
0 Show voters
error 001: expected token: \";\", but found \"-identifier-\"
Ezt a hibát kapom mindig erre a sorra
 
SetPlayerHealth(playerid, 10000);

 
Mi lehet a baja? :)

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #1 Dátum: 2012. Május 16. - 14:25:26 »
0 Show voters
Szia! Ennek semmi baja. A mod elején milyen includék vannak? Másold be nekem.
Includék így néznek ki ha nemtudod
 
#include <a_samp>

 
Ez csak példa volt!
-coldridge

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #2 Dátum: 2012. Május 16. - 14:26:05 »
0 Show voters
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #3 Dátum: 2012. Május 16. - 14:27:22 »
+1 Show voters
Idézetet írta: zeteni date=1337171165\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21526\" data-ipsquote-contentclass=\"forums_Topic
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak
 
Akkor, minek szeretnél 10.000 HP-t? Amikor spawnol az embered vagy mikor?
-coldridge

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #4 Dátum: 2012. Május 16. - 14:28:51 »
0 Show voters
Adminszolgálatba lépéskor
 
CMD:aszoli(playerid, params[])
{
if (IsPlayerLuxAdmin(playerid) >= 1)
{
                SetPlayerSkin(playerid, 217);
                SetPlayerHealth(playerid, 10000);
                asz = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0);
                Attach3DTextLabelToPlayer(asz, playerid, 0.0, 0.0, 0.4);
                GetPlayerName(playerid, neve, sizeof(neve));
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
                format(stringz, sizeof(stringz),      \"Admin %s szolgálatba lépett!\", neve);
                SendClientMessageToAll(COLOR_RED,stringz);
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
  }
return 1;
}

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #5 Dátum: 2012. Május 16. - 14:36:08 »
+1 Show voters
Nekem nem dobott rá rosszat.

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #6 Dátum: 2012. Május 16. - 14:36:44 »
0 Show voters
Rakd a [pawn]public OnPlayerCommandText[/pawn] alá! Warnings-ot ír de attól mûködik. A warnok oka, hogy nincs használatban a CMD és az adminszolgalat változó!
[pawn]public OnPlayerCommandText(playerid)
CMD:adminszolgalat(playerid, params[])
    {
    if (IsPlayerLuxAdmin(playerid) >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerHealth(playerid, 10000);
    asz = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0);
    Attach3DTextLabelToPlayer(asz, playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, neve, sizeof(neve));
    SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
    format(stringz, sizeof(stringz),      \"Admin %s szolgálatba lépett!\", neve);
    SendClientMessageToAll(COLOR_RED,stringz);
    SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
    return 1;
    }[/pawn]

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #7 Dátum: 2012. Május 16. - 14:37:33 »
+1 Show voters
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dudb>
#include <ladmin>
#include <sscanf2>
#define COLOR_RED 0xFF0000AA
new
      Text3D: asz,
      neve[ MAX_PLAYER_NAME ],
      stringz[ 128 ];
CMD:aszoli(playerid, params[])
{
    if (IsPlayerLuxAdmin(playerid) >= 1)
    {
                SetPlayerSkin(playerid, 217);
                SetPlayerHealth(playerid, 10000);
                asz = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0);
                Attach3DTextLabelToPlayer(asz, playerid, 0.0, 0.0, 0.4);
                GetPlayerName(playerid, neve, sizeof(neve));
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
                format(stringz, sizeof(stringz),      \"Admin %s szolgálatba lépett!\", neve);
                SendClientMessageToAll(COLOR_RED,stringz);
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
    }
    return 1;
}

  Coldridge az nagyon nemjó. Nincs olyan, hogy CMD adminszolgalat változó. :D Ha van warning, nagyon sok esetben akkor sem mûködik... Attól függ, mi a warning....
« Utoljára szerkesztve: 2012. Május 16. - 14:44:20 írta Gabor.. »

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #8 Dátum: 2012. Május 16. - 14:44:21 »
0 Show voters
Köszi Gabor! Mindenkinek adok egy +-t aki próbáld/tudott segíteni

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #9 Dátum: 2012. Május 16. - 14:23:53 »
0 Show voters
error 001: expected token: \";\", but found \"-identifier-\"
Ezt a hibát kapom mindig erre a sorra
 
SetPlayerHealth(playerid, 10000);

 
Mi lehet a baja? :)

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #10 Dátum: 2012. Május 16. - 14:25:26 »
0 Show voters
Szia! Ennek semmi baja. A mod elején milyen includék vannak? Másold be nekem.
Includék így néznek ki ha nemtudod
 
#include <a_samp>

 
Ez csak példa volt!
-coldridge

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #11 Dátum: 2012. Május 16. - 14:26:05 »
0 Show voters
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #12 Dátum: 2012. Május 16. - 14:27:22 »
0 Show voters
Idézetet írta: zeteni date=1337171165\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21526\" data-ipsquote-contentclass=\"forums_Topic
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak
 
Akkor, minek szeretnél 10.000 HP-t? Amikor spawnol az embered vagy mikor?
-coldridge

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #13 Dátum: 2012. Május 16. - 14:28:51 »
0 Show voters
Adminszolgálatba lépéskor
 
CMD:aszoli(playerid, params[])
{
if (IsPlayerLuxAdmin(playerid) >= 1)
{
                SetPlayerSkin(playerid, 217);
                SetPlayerHealth(playerid, 10000);
                asz = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0);
                Attach3DTextLabelToPlayer(asz, playerid, 0.0, 0.0, 0.4);
                GetPlayerName(playerid, neve, sizeof(neve));
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
                format(stringz, sizeof(stringz),      \"Admin %s szolgálatba lépett!\", neve);
                SendClientMessageToAll(COLOR_RED,stringz);
                SendClientMessageToAll(COLOR_RED, \"-------------------------------------------------------------\");
  }
return 1;
}

error 001: expected token: ";", but found "-identifier-" Ez a hiba
« Válasz #14 Dátum: 2012. Május 16. - 14:36:08 »
0 Show voters
Nekem nem dobott rá rosszat.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal