Pages

(Help) why do i get this error when compiling?

mardi 13 septembre 2016
Im making a closeall button and im stuck on this issue..

void criarlabelControl (string nome,string texto, color cor,int x,int y,int size,int corner=1){
if (nome!="PairLabel")int soma=y+30; else int soma=y; <------ where soma is declared.
ObjectDelete(nome);
ObjectCreate(nome,OBJ_LABEL,0, 0, 0);
ObjectSetText(nome,texto,size, "tahoma", cor);
ObjectSet(nome, OBJPROP_CORNER, corner);
ObjectSet(nome, OBJPROP_XDISTANCE, x);
ObjectSet(nome, OBJPROP_YDISTANCE, soma); <---- its saying its undeclared but it is above


(Help) why do i get this error when compiling?

Aucun commentaire:

Enregistrer un commentaire