11.04.2014, 00:09
I have errors with array while compile
the errors:
pawn Код:
if(dialogid == 127)
{
new playerb,string[128];
if(response)
{
inputtext[] = playerb; // the line 9699
if(!udb_Exists(PlayerName2(playerb)))
{
SendClientMessage(playerid,red,"ERROR: This name doesn't exist.");
ShowPlayerDialog(playerid, 127, DIALOG_STYLE_INPUT, "Refer A Person","{E10000}(Wrong Name){FFFFFF}If there is someone told you about our server type his name here if no just click No","Refer","No");
}
else if(udb_Exists(PlayerName2(playerb)))
{
if(PlayerInfo[playerb][LoggedIn] == 1)
{
new iscore;
SendClientMessage(playerb,COLOR_YELLOW,"There is a person has refered you so you got a prize. (3k Score , 5k Money)");
GivePlayerMoney(playerb,5000);
iscore = GetPlayerScore(playerb);
SetPlayerScore(playerb, iscore+3000);
format(string, sizeof(string),"You have referd %s.", PlayerName2(playerb));
SendClientMessage(playerid,grey,string);
}
else if(PlayerInfo[playerb][LoggedIn] == 0)
{
new iscore, imoney;
imoney = GetPlayerMoney(playerb);
iscore = GetPlayerScore(playerb);
dUserSetINT(PlayerName2(playerid)).("money",imoney+5000);
dUserSetINT(PlayerName2(playerid)).("Score",iscore+3000);
format(string, sizeof(string),"You have referd %s.", PlayerName2(playerb));
SendClientMessage(playerid,grey,string);
refered[playerb] = 1;
}
}
}
}
Код:
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\codwaw32.pwn(6121) : warning 204: symbol is assigned a value that is never used: "file" C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\codwaw32.pwn(9699) : error 029: invalid expression, assumed zero C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\codwaw32.pwn(9699) : warning 215: expression has no effect