big issue, need help!! really! -
marrcko - 09.05.2011
Hi,
I don't get it what is wrong with this script
pawn Код:
if (dialogid == 10) //sms
{
if(response)
{
if (player[playerid][calling] || player[playerid][caller] != 255)
{
SendClientMessage(playerid, 0xBFC0C2FF, "You are already on the phone. use /hangup to hangup");
return 1;
}
new phonenumb = strlen(GetArgument(0, inputtext, 0));
new zin[200] = GetArgument(1,inputtext, 0);
if(!IsNumeric(inputtext))
return ShowPlayerDialog(playerid,10, DIALOG_STYLE_INPUT,"Rasyti sms","Бvesk telefono numerб ir tekstа","Siшsti","Atgal");
new name[16], string[256];
GetPlayerName(playerid, name, 16);
SetTimerEx("stopphone", 5000, 0, "%d", playerid);
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(player[i][number] == phonenumb && phonenumb != 0 && !player[i][calling] && player[i][caller] == 255 && i != playerid)
{
if(GetPlayerMoney(playerid) >= txtcost)
{
format(string, sizeof(string), "SMS: %s From %s (%d)", zin,name,player[playerid][number]);
SendClientMessage(playerid, 0xFFFFFFAA, "Text Message Delivered");
SendClientMessage(i, 0xFFFF00AA, string);
format(string, sizeof(string), "$-%d", txtcost);
GameTextForPlayer(playerid, string, 5000, 1);
GivePlayerMoneyA(playerid,-txtcost);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(string, 255, "you dont have enough money to SMS, a SMS costs $%d", txtcost);
SendClientMessage(playerid, 0xFFFF00AA, string);
return 1;
}
}
}
}
SendClientMessage(playerid, 0xBFC0C2FF, " ..Message Delivery Failed");
}
else ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Telefono meniu","Skambinti\nRaрyti SMS\nTelefonш knyga\
\nMano informacija\nMisijos","Rinktis", "Atgal");
return 1;
}
errors:
pawn Код:
E:\Smth\samp\free roam\gamemodes\freeroam.pwn(1668) : error 017: undefined symbol "GetArgument"
E:\Smth\samp\free roam\gamemodes\freeroam.pwn(1669) : error 017: undefined symbol "GetArgument"
E:\Smth\samp\free roam\gamemodes\freeroam.pwn(1669) : error 008: must be a constant expression; assumed zero
Also on this GM don't work
StringToInit and
IsNumeric( same errors as above)
But if i compile other my gm its compile without errors(Gm is full of StringtoInt, IsNumeric and GetArgument)
So can anyone help me by T.V. or looking in my d*mn gm or other ways?
PLEASE!!
P.S. I can add full gm in pastebin if its need to
Re: big issue, need help!! really! -
Seven_of_Nine - 09.05.2011
You don't have GetArgument, and it probably returns an integer.
Re: big issue, need help!! really! -
marrcko - 09.05.2011
what do u mean i dont have 'GetArgument'?You mean Stock?
Re: big issue, need help!! really! -
Seven_of_Nine - 09.05.2011
Yes, you don't have the stock
EDIT: oh I finally read the last sentence: search for GetArgument, then copy the whole stock, and copy it to the other GM.
Re: big issue, need help!! really! -
marrcko - 09.05.2011
thx man I fanally finded even i had check over 50 files