Szerző Téma: asay help 4 errort ír  (Megtekintve 1348 alkalommal)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Dátum: 2012. április 02. - 17:34:31 »
0 Show voters
Sziasztok elkzdtem csinálni az admin rendszert...és máris kis bajba ütköztem :)
 
C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 017: undefined symbol \"cmd_asay\"
C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

 
És itt a script
 
CMD:asay(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
new admiin[MAX_PLAYER_NAME];
GetPlayerName(playerid,admiin,sizeof(admiin));
new text[128];
if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\");
new kakak[128];
format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text);
SendClientMessageToAll(0xA10000AA,kakak);
}
SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\");
return 1;
}

 
Elõre is köszi a helpet.
« Utoljára szerkesztve: 2012. április 02. - 17:38:32 írta BoSS »

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #1 Dátum: 2012. április 02. - 17:37:12 »
0 Show voters
#include < zcmd > megvolt?
« Utoljára szerkesztve: 2012. április 02. - 17:39:04 írta Benceee »

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
asay help 4 errort ír
« Válasz #2 Dátum: 2012. április 02. - 17:39:25 »
0 Show voters
CMD:asay(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
        new admiin[MAX_PLAYER_NAME], kakak[128], text[128];   
        if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\");
        GetPlayerName(playerid,admiin,sizeof(admiin));
        format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text);
        SendClientMessageToAll(0xA10000AA,kakak);
     }
     else
     {
        SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\");
     }
     return 1;
}

 Esetleg így, de nemtudom tesztelni pawno-n, mert a \'PlayerInfo\' változóját nem ismerem.
« Utoljára szerkesztve: 2012. április 02. - 17:43:17 írta Gabor.. »

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #3 Dátum: 2012. április 02. - 17:39:53 »
0 Show voters
Idézetet írta: Benceee date=1333381032\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"19509\" data-ipsquote-contentclass=\"forums_Topic
#include < zcmd > megvolt?
 
Meg van persze és be is volt írva eddig is.

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #4 Dátum: 2012. április 02. - 17:40:14 »
0 Show voters
CMD:asay(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
new admiin[MAX_PLAYER_NAME];
GetPlayerName(playerid,admiin,sizeof(admiin));
new text[128];
if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\");
new kakak[128];
format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text);
SendClientMessageToAll(0xA10000AA,kakak);
} else {SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\");}
return 1;
}

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #5 Dátum: 2012. április 02. - 17:42:42 »
0 Show voters
Még mindig ugyan ezeket a hibákat írja.

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #6 Dátum: 2012. április 02. - 17:44:03 »
0 Show voters
Idézetet írta: BoSS date=1333381362\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"19509\" data-ipsquote-contentclass=\"forums_Topic
Még mindig ugyan ezeket a hibákat írja.
 
Nálam hibátlan. enumerálást bemásolnád?

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #7 Dátum: 2012. április 02. - 17:46:13 »
0 Show voters
Erre gondolsz?
enum pInfo
{
     pAdmin,
}
;

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #8 Dátum: 2012. április 02. - 17:47:04 »
0 Show voters
Idézetet írta: BoSS date=1333381573\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"19509\" data-ipsquote-contentclass=\"forums_Topic
Erre gondolsz?
enum pInfo
{
     pAdmin,
}
;
 
Az a pontosvesszõ nem kell oda.

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #9 Dátum: 2012. április 02. - 17:50:14 »
0 Show voters
LEvettem azt a vesszõt de így is ugyan ez az error :/

dexi

  • Vendég
asay help 4 errort ír
« Válasz #10 Dátum: 2012. április 02. - 17:51:32 »
0 Show voters
a vesszõ sem kell oda ha csak az admin van ott.

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #11 Dátum: 2012. április 02. - 17:52:55 »
0 Show voters
Idézetet írta: Fl0rian date=1333381892\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"19509\" data-ipsquote-contentclass=\"forums_Topic
a vesszõ sem kell oda ha csak az admin van ott.
 
Levettem de még mindig ez a gond.

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #12 Dátum: 2012. április 02. - 17:54:12 »
0 Show voters
zcmd inc-d frissítsd. Mást nem tudok.

Nem elérhető BoSS

  • 816
    • Profil megtekintése
asay help 4 errort ír
« Válasz #13 Dátum: 2012. április 02. - 18:01:06 »
0 Show voters
Frissítettem,de semmi ugyan ezt csinálja :/

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
asay help 4 errort ír
« Válasz #14 Dátum: 2012. április 02. - 18:05:32 »
0 Show voters
new PlayerInfo kódot bemásolnád?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal