WeeD Posted February 19, 2014 Posted February 19, 2014 Salut Sa-Mp.RoAstazi am sters din greseala toate include-urile si am adaugat altele,care cred ca sunt vechiAm facut un update la un server si mi-a dat eroarea astaC:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55915) : error 017: undefined symbol "SetObjectMaterialText"C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55922) : error 017: undefined symbol "SetObjectMaterialText"C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55929) : error 017: undefined symbol "SetObjectMaterialText"Iar acestea sunt linilestock adtext(string[], adid){ switch(adid) { case 0: { for (new i = 0; i < 12; i++) { SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, -16777216, 1); } } case 1: { for (new i = 12; i < 25; i++) { SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, COLOR_WHITE, 1); } } case 2: { for (new i = 25; i < 38; i++) { SetObjectMaterialText(adplakat, string, 0, 90, "Arial", 24, 0, -32256, COLOR_BLUE, 1); } } }}Cred ca are legatura cu niste panouri pe care le-am facut format(AdTxt[0][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -"); format(AdTxt[1][bAdTxt],64, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever"); format(AdTxt[2][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}-Best Server Ever");ialogid == 11103) { if(response==1) { if(!strlen(inputtext)) return ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza"," Linia 1 ","Done",""); format(AdTxt[adtxtid[playerid]][bAdTxt],256, "%s\n", inputtext); ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza"," Linia 2 ","Done",""); return 1; } else { ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza"," Linia 1 ","Done",""); return 1; } } if(dialogid == 11104) { if(response==1) { switch (adtxtid[playerid]) { case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFA500}%s{33AAFF}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext); case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{04B404}%s{AA3333}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext); case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFFFFF}%s{FF9900}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext); } adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]); ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panori",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel"); return 1; } else { ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza"," Linia 2 ","Done",""); return 1; } } if(dialogid == 11105) { if(response) { switch(listitem) { case 0: { adtxtid[playerid] = 0; format(string, sizeof(string), "Edit\nDefault\nView"); ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 1",string,"Next","Close"); return 1; } case 1: { adtxtid[playerid] = 1; format(string, sizeof(string), "Edit\nDefault\nView"); ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 2",string,"Next","Close"); return 1; } case 2: { adtxtid[playerid] = 2; format(string, sizeof(string), "Edit\nDefault\nView"); ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 3",string,"Next","Close"); return 1; } } } else { return 1; } } if(dialogid == 11006) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Edit"," Linia 1 ","Ok",""); return 1; } case 1: { switch (adtxtid[playerid]) { case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -"); case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever"); case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}-Best Server Ever"); } adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]); return 1; } case 2: { ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panou",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel"); return 1; } } } else { format(string, sizeof(string), "Panou 1\nPanou 2\nPanou 3"); ShowPlayerDialog(playerid,11105,DIALOG_STYLE_LIST,"Panouri",string,"Ok","Cancel"); } }Aici e o comanda /panouri in care scrii ce sa fie scris pe acele panouri
DouazeciCM Posted February 19, 2014 Posted February 19, 2014 Actualizeaza includele a_samp la [0.3x] sau [0.3Z]
Question
WeeD
Salut Sa-Mp.Ro
Astazi am sters din greseala toate include-urile si am adaugat altele,care cred ca sunt vechi
Am facut un update la un server si mi-a dat eroarea asta
C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55915) : error 017: undefined symbol "SetObjectMaterialText"
C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55922) : error 017: undefined symbol "SetObjectMaterialText"
C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55929) : error 017: undefined symbol "SetObjectMaterialText"
Iar acestea sunt linile
stock adtext(string[], adid)
{
switch(adid)
{
case 0:
{
for (new i = 0; i < 12; i++)
{
SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, -16777216, 1);
}
}
case 1:
{
for (new i = 12; i < 25; i++)
{
SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, COLOR_WHITE, 1);
}
}
case 2:
{
for (new i = 25; i < 38; i++)
{
SetObjectMaterialText(adplakat, string, 0, 90, "Arial", 24, 0, -32256, COLOR_BLUE, 1);
}
}
}
}
Cred ca are legatura cu niste panouri pe care le-am facut
format(AdTxt[0][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -");
format(AdTxt[1][bAdTxt],64, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever");
format(AdTxt[2][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}-Best Server Ever");
ialogid == 11103)
{
if(response==1)
{
if(!strlen(inputtext)) return ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza"," Linia 1 ","Done","");
format(AdTxt[adtxtid[playerid]][bAdTxt],256, "%s\n", inputtext);
ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza"," Linia 2 ","Done","");
return 1;
}
else
{
ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza"," Linia 1 ","Done","");
return 1;
}
}
if(dialogid == 11104)
{
if(response==1)
{
switch (adtxtid[playerid])
{
case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFA500}%s{33AAFF}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);
case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{04B404}%s{AA3333}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);
case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFFFFF}%s{FF9900}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);
}
adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]);
ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panori",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel");
return 1;
}
else
{
ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza"," Linia 2 ","Done","");
return 1;
}
}
if(dialogid == 11105)
{
if(response)
{
switch(listitem)
{
case 0:
{
adtxtid[playerid] = 0;
format(string, sizeof(string), "Edit\nDefault\nView");
ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 1",string,"Next","Close");
return 1;
}
case 1:
{
adtxtid[playerid] = 1;
format(string, sizeof(string), "Edit\nDefault\nView");
ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 2",string,"Next","Close");
return 1;
}
case 2:
{
adtxtid[playerid] = 2;
format(string, sizeof(string), "Edit\nDefault\nView");
ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 3",string,"Next","Close");
return 1;
}
}
}
else
{
return 1;
}
}
if(dialogid == 11006)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Edit"," Linia 1 ","Ok","");
return 1;
}
case 1:
{
switch (adtxtid[playerid])
{
case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -");
case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever");
case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}-Best Server Ever");
}
adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]);
return 1;
}
case 2:
{
ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panou",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel");
return 1;
}
}
}
else
{
format(string, sizeof(string), "Panou 1\nPanou 2\nPanou 3");
ShowPlayerDialog(playerid,11105,DIALOG_STYLE_LIST,"Panouri",string,"Ok","Cancel");
}
}
Aici e o comanda /panouri in care scrii ce sa fie scris pe acele panouri
2 answers to this question
Recommended Posts