10.11.2013, 09:42
Код:
invalid expression, assumed zero
pawn Код:
CMD:deployradio (playerid, params[])
{
if(PRinfo[playerid][radioDeployed]==1) //PLayer already has 1 deployed
{
SendClientMessage(playerid, 0xFC00FCF, "You have already deployed an radio.");
}
for(new i=0;i<MAX_PLAYERS+1;i++)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, PRinfo[i][locX], PRinfo[i][locY], PRinfo[i][locZ]))//Cannont deploy if someone deployed already 1,near him
{
SendClientMessage(playerid, COLOR_GREY, "You can not place a radio near already existing one.Find another place");
}
}
else // THIS LINE,but everything is fine?
{
ShowPlayerDialog(playerid, MUSIC_DIALOG, DIALOG_STYLE_LIST, "Choose a song", radioSongs, "OK", "");
}
return 1;
}