GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: zeteni - 2012. május 16. - 14:23:53

Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:23:53
error 001: expected token: \";\", but found \"-identifier-\"
Ezt a hibát kapom mindig erre a sorra
 
SetPlayerHealth(playerid, 10000);

 
Mi lehet a baja? :)
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:25:26
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
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:26:05
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:27:22
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
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:28:51
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;
}
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: asdasd[gtaforum] - 2012. május 16. - 14:36:08
Nekem nem dobott rá rosszat.
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:36:44
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]
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: Gabor.. - 2012. május 16. - 14:37:33
#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....
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:44:21
Köszi Gabor! Mindenkinek adok egy +-t aki próbáld/tudott segíteni
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:23:53
error 001: expected token: \";\", but found \"-identifier-\"
Ezt a hibát kapom mindig erre a sorra
 
SetPlayerHealth(playerid, 10000);

 
Mi lehet a baja? :)
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:25:26
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
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:26:05
Tudom, hogy néznek ki! :)
 
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <ladmin>
#include <sscanf2>

 
Ezek vannak
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:27:22
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
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:28:51
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;
}
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: asdasd[gtaforum] - 2012. május 16. - 14:36:08
Nekem nem dobott rá rosszat.
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: coldridge - 2012. május 16. - 14:36:44
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]
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: Gabor.. - 2012. május 16. - 14:37:33
#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....
Cím: error 001: expected token: ";", but found "-identifier-" Ez a hiba
Írta: zeteni - 2012. május 16. - 14:44:21
Köszi Gabor! Mindenkinek adok egy +-t aki próbáld/tudott segíteni