STRMID DIALOG INPUT... - 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: STRMID DIALOG INPUT... (
/showthread.php?tid=403476)
STRMID DIALOG INPUT... -
NeroX98 - 30.12.2012
Hi...
I can't understand strmid.. i'm making description for bussinesses but the problem is strmid... Look at the code:
pawn Код:
if(dialogid == 14004)
{
if(response)
{
new bouse = PlayerInfo[playerid][pPbiskey];
new sendername[MAX_PLAYER_NAME];
new string1[126];
new string[126];
// new opis = strlen(inputtext)[/COLOR]
//strmid(SBizzInfo[bouse-100][sbDiscription], opis, 0, 64, 255);
format(string, sizeof(string), "{CFCB08}Opisot na biznisot e promeneto vo {ED9A3B}\"%s\"",SBizzInfo[bouse-100][sbDiscription]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string1, sizeof(string1), "* Sopstvenikot %s go promeni opisot na svojot biznis.", sendername);
ProxDetector(30.0, playerid, string1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
OnPropUpdate();
OnPropTextdrawUpdate(1, bouse-100);
}
else
{
ShowPlayerDialog(playerid, 14001, DIALOG_STYLE_LIST, "|° Biznis Kontrola °|", "Informacii za biznisot\nOstavi pari vo kasata\nIzvadi pari od kasata\nPromeni opis", "OK", "Otkazi");
}
}
Look at the commented lines..
Errors at Line:
Код:
D:\PC Igri\GTA\GTA San Andreas\Tomato RPG Macedonia\gamemodes\TRPG.pwn(17086) : error 035: argument type mismatch (argument 2)
D:\PC Igri\GTA\GTA San Andreas\Tomato RPG Macedonia\gamemodes\TRPG.pwn(17086) : warning 204: symbol is assigned a value that is never used: "opis"
Re : STRMID DIALOG INPUT... -
[HRD]Mar1 - 30.12.2012
What errors come when that lines non commented??
Re: STRMID DIALOG INPUT... -
NeroX98 - 30.12.2012
they are not commented in my pawn... i have commented them just on the post, because i wanted to show where i used strmid
Re: STRMID DIALOG INPUT... -
NeroX98 - 30.12.2012
I have tried something... Now i don't have errors but when i type something with letters it won't show/save... It shows/saves only message with numbers... ANY IDEAS ?
pawn Код:
if(dialogid == 14004)
{
if(response)
{
new bouse = PlayerInfo[playerid][pPbiskey];
new sendername[MAX_PLAYER_NAME];
new string1[126];
new string[126];
// new opis[64];
// new idx;
// opis = strtok(inputtext, idx);
// strmid(SBizzInfo[bouse-100][sbDiscription], opis, 0, strval(inputtext), 255);
format(string, sizeof(string), "{CFCB08}Opisot na biznisot e promenet vo {ED9A3B}\"%s\"",SBizzInfo[bouse-100][sbDiscription]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string1, sizeof(string1), "* Sopstvenikot %s go promeni opisot na svojot biznis.", sendername);
ProxDetector(30.0, playerid, string1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
OnPropUpdate();
OnPropTextdrawUpdate(1, bouse-100);
}
else
{
ShowPlayerDialog(playerid, 14001, DIALOG_STYLE_LIST, "|° Biznis Kontrola °|", "Informacii za biznisot\nOstavi pari vo kasata\nIzvadi pari od kasata\nPromeni opis", "OK", "Otkazi");
}
}
Look the commented lines(the are not commented in my pawno, i commented them to show you where is the problem.

)