30.12.2012, 14:51
Hi...
I can't understand strmid.. i'm making description for bussinesses but the problem is strmid... Look at the code:
Look at the commented lines..
Errors at Line:
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");
}
}
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"