SA-MP Forums Archive
Error 017 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 017 (/showthread.php?tid=648899)



Error 017 - enzulikeS - 30.01.2018

D:\server\gamemodes\Untitled.pwn(296) : error 017: undefined symbol "obiecte"

I used pragma unused obiecte, the command is not working on the server.

Line: CMDbiecte(playerid,params)

Entire CMD:

CMDbiecte(playerid,params)
{
new string[56];
format(string,sizeof(string)," Ai {FF0000}%d / %d {FFFFFF}obiecte gasite! Mai ai nevoie de {FF0000}%d {FFFFFF}pentru a obtine premiul!",ObiecteGasiteTotal[playerid],MAX_OBIECTE,MAX_OBIECTE-ObiecteGasiteTotal[playerid]);
SendClientMessage(playerid,-1,string);
return 1;
}


Re: Error 017 - DarkBr - 30.01.2018

Are you sure zcmd is included? other

Код:
#include <zcmd >
and params[]


Re: Error 017 - enzulikeS - 30.01.2018

CMDbiecte(playerid, params[])
{
new string[56];
format(string,sizeof(string)," Ai {FF0000}%d / %d {FFFFFF}obiecte gasite! Mai ai nevoie de {FF0000}%d {FFFFFF}pentru a obtine premiul!",ObiecteGasiteTotal[playerid],MAX_OBIECTE,MAX_OBIECTE-ObiecteGasiteTotal[playerid]);
SendClientMessage(playerid,-1,string);
return 1;
}

still the same error


Re: Error 017 - DarkBr - 30.01.2018

PHP код:
CMD:biecte(playeridparams[])
{
    new 
string[56];
    
format(string,sizeof(string)," Ai {FF0000}%d / %d {FFFFFF}obiecte gasite! Mai ai nevoie de {FF0000}%d {FFFFFF}pentru a obtine premiul!",ObiecteGasiteTotal[playerid],MAX_OBIECTE,MAX_OBIECTE-ObiecteGasiteTotal[playerid]);
    
SendClientMessage(playerid,-1,string);
    return 
1;




Re: Error 017 - enzulikeS - 30.01.2018

Quote:
Originally Posted by DarkBr
Посмотреть сообщение
PHP код:
CMD:biecte(playeridparams[])
{
    new 
string[56];
    
format(string,sizeof(string)," Ai {FF0000}%d / %d {FFFFFF}obiecte gasite! Mai ai nevoie de {FF0000}%d {FFFFFF}pentru a obtine premiul!",ObiecteGasiteTotal[playerid],MAX_OBIECTE,MAX_OBIECTE-ObiecteGasiteTotal[playerid]);
    
SendClientMessage(playerid,-1,string);
    return 
1;

added this but same error...

D:\server\gamemodes\Untitled.pwn(296) : warning 203: symbol is never used: "obiecte"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: Error 017 - DarkBr - 30.01.2018

Are you sure zcmd is included ??


Re: Error 017 - enzulikeS - 30.01.2018

forgot to add zcmd and sscanf at #include, fixed and sorry