Error 017
#1

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;
}
Reply
#2

Are you sure zcmd is included? other

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

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
Reply
#4

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;

Reply
#5

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
Reply
#6

Are you sure zcmd is included ??
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)