[POMOC]

Započeo DraX scripter, Jun 04, 2022, 09:17:55 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

(248) : error 029: invalid expression, assumed zero
(248):warning 202: number of arguments does not match definition
248) : error 001: expected token: ",", but found ";"
(455) : error 029: invalid expression, assumed zero
(455) : warning 215: expression has no effect
455) : error 001: expected token: ";", but found "]"
(455) : error 029: invalid expression, assumed zero
(455) : fatal error 107: too many error messages on one line
6 Errors.
prvi error
   new string[256],name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(string, sizeof(string), "{F3FF02}%s {FFFFFF}kaze: %s",name, text);
   ProxDetector(30.0, playerid, string, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA,);
   return false;
2 erorr a i mislim da nije dobro ni me i do odraden da ce da izbaci erorr
//=========================================================================//
YCMD:b (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/b [TEXT]");
   format(msg, sizeof(msg), ""BELA"(OOC) {F3FF02}%2"BELA": (( %s ))", GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA,);
   return 1;
}
//===============================[ME]=========================================//
YCMD:me (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/me [TEXT]");
   format(msg, sizeof(msg),  "* %s (( %s ))", text, GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA,);
   return 1;
}
//==============================[DO]==========================================//
YCMD:do (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/do [TEXT]");
   format(msg, sizeof(msg), "* %s (( %s ))", text, GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA,);
   return 1;
}

Poslednja Izmena: Jun 04, 2022, 10:52:13 PRE PODNE od Deleted User

Ah aj kad su komentari obrisani aj da pomognem
[pawn]YCMD:b (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/b [TEXT]");
   format(msg, sizeof(msg), ""BELA"(OOC) {F3FF02}%2"BELA": (( %s ))", GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA);
   return 1;
}
//===============================[ME]=========================================//
YCMD:me (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/me [TEXT]");
   format(msg, sizeof(msg),  "* %s (( %s ))", text, GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA);
   return 1;
}
//==============================[DO]==========================================//
YCMD:do (playerid, params[], help)
{
   new text[80], msg[256];
   if(UlogovaniIgrac[playerid] ==  O,) return Greska(playerid, "Nisi ulogovan."));
   else if(zamrznut[playerid]  ==  1,) return Greska(playerid, "Zamrznut si."));
   else if(sscanf(params, "s[80]", text)return Ukucaj(playerid, "/do [TEXT]");
   format(msg, sizeof(msg), "* %s (( %s ))", text, GetName(playerid), text);
   ProxDetector(30.0, playerid, msg,  0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA);
   return 1;
}[/pawn]
Probaj ovako
Zz
fakenexsus



Pravila, nisi pratio format, nisi se cak udostoio da ubacis kod i greske u odgovarajuce bbcode tagove.

I kad ti pise expected nesto found nesto, onda gledaj ne samo tu liniju nego i onu iznad (ako je iznad komentar, zagrada, prazno onda idi jos iznad).
Recimo prvi error ti je na kraju linije iznad false imas ,);  taj zarez je visak

Nexus je valjda fix ovaj drugi.

Lock, procitaj pravila